You are on page 1of 7

More vats.namit@gmail.

com New Post Desi

TCB
WSO2 ESB - HELLO WORLD - CLASS MEDIATION thecodebuddy

WSO2 - ESB
I came across this thing recently, and generally as we developers do, I did some head banging.
Assuming that theory is not what you are looking for, this post will land you in the arena directly, with working demo,
following the old school tradition - a 'Hello World' program . 🙂
This will be involving ESB 5.x.x, based on the online documentation it is too easy to proceed with the installation part, Fedora 24 or any other
yummy UNIX flavor.

I suggest you to install ESB bundle with Eclipse Luna from the site, since the latest version available i.e. the one with Eclipse Mars, will throw lot
of NPEs in the environment.
TCB

About Me

thecodebuddy
View my complete profile

FB Page

Find me on Quora

Get code on Github

Follow @namitsharma99

html-css-badge

package abc;

import org.apache.synapse.MessageContext;
Exam 480:…
import org.apache.synapse.mediators.AbstractMediator;
Issuer: Microsoft…
Provided by
public class MedTester extends AbstractMediator { Acclaim

public boolean mediate(MessageContext context) {


// TODO Implement your mediation logic here
System.out.println("Wassup ??????? ");
return true;
}
}
Contact form
Steps to follow ahead -
Name
Upload the jar for the above class in wso2esb-5.x.x/repository/components/lib folder.

Start the analytics server then your core server.


Email *
Add a sequence with class mediator.

Make sure class is uploaded successfully.


Message *

Send

Create an API for invoking your above sequence.

Blog archive

► 2020 (6)
► 2018 (7)
► 2017 (38)
▼ 2016 (3)
▼ December (3)
WSO2 - ESB |
FOREACH
MEDIATOR
WSO2 ESB - HELLO
WORLD - CLASS
MEDIATION
Stepping into the world
of Amazon Web
Services

Hit the below url using curl command -

http://172.16.2.34:8280/helloContext/helloAPI

curl -X GET http://172.16.2.34:8280/helloContext/helloAPI/

Total Pageviews

28,638

Popular Posts
Here you go! Enjoy the output. 🙂 WSO2 ESB - Ho
use PayloadFac
Mediator
How to use
PayloadFactory
at December 27, 2016 Mediator As per the WSO2-E
documentation of PayloadFac
Labels: class mediator, curl, ESB, esb5, fedora, hello world, Java, mediation, unix, WSO2 Mediator, it is stated that this

Reading Excel file using java


2 comments: How to use JAVA code to rea
excel cells? Here it goes - Fu
available @ https://github.com
sheela rajesh 21 April 2019 at 23:59 harma99/fileHandlingUs...
Really nice blog and impressive information you gave us.Thank you and i will expect more in future. JAVASCRIPT
JAVA Training in Chennai SAMPLES - TIC
Best JAVA Training institute in Chennai TOE GAME &
Python Training in Chennai DYNAMIC TABL
Selenium Training in Chennai CREATION IN J
Android Training in Chennai Hello Buddies. It's time to play
Big data training in chennai toe, but this time, not with pen
JAVA Training in Chennai paper. We will create our own
that allows us to ...
Java Training in Tambaram

Reply Delete WSO2 - ESB |


FOREACH MED
FOREACH MED
In the previous n
riyaz 4 June 2020 at 06:17 saw how we can
It is actually a great and helpful piece of information. I am satisfied that you simply shared this helpful information with us. Please stay us custom classes as Mediators.
informed like this. Thanks for sharing. on to cover other important m
Android Training Institute in Chennai | Android Training Institute in anna nagar | Android Training Institute in omr | Android Training
Institute in porur | Android Training Institute in tambaram | Android Training Institute in velachery
JAVASCRIPT
SAMPLES - SH
Reply Delete GAME
Hello Buddies. T
simple shooting
using mouse cursor and javas
Enter your comment... Complete code is available he
https:/...

JAVASCRIPT
SAMPLES - RA
Comment as: thecodebuddy ( Sign out CARS - SIMPLE
Hello Buddies. T
is a simple javas
Publish Preview Notify me code written to get look and fe
very basic racing game. The
complete code is avai...

RESTFul CRUD
pinch of AJAX a
Hibernate
Newer Post Home Older Post Hello Buddies...
something bigge
time. A commonly known task
Subscribe to: Post Comments (Atom) developers generally come ac

WSO2 ESB - HE
Featured post WORLD - CLAS
MEDIATION
How to take backup of MYSQL tables daily and remove the older backups WSO2 - ESB I c
across this thing
In day to day heavy transactions happening in our DB, we sometimes wish to retain the previous states of the tables. This not only prevents ... recently, and generally as we
developers do, I did some hea
banging. Assuming that theor
w...

JAVA code to handle versions


comparisons.
Hello Buddies. Sharing a sma
useful piece of code, that can
you in handling version string
comparisons in day-to-day co

O(n^2) vs O(n) techniques for


the max count of a digit in the
numerical String.
Hello Buddies Came across t
question related Java String h
so thought of sharing. Questio
Given a string made up of n n

Search This Blog

Blog archive

► 2020 (6)
► 2018 (7)
► 2017 (38)
▼ 2016 (3)
▼ December (3)
WSO2 - ESB |
FOREACH
MEDIATOR
WSO2 ESB - HELLO
WORLD - CLASS
MEDIATION
Stepping into the world
of Amazon Web
Services

Newsletter

Email address...
WSO2 ESB - How to use PayloadFactory Mediator
How to use PayloadFactory Mediator As per the WSO2-ESB documentation of PayloadFactory Mediator, it is stated that this me...
Reading Excel file using java code
How to use JAVA code to read the excel cells? Here it goes - Full code is available @ https://github.com/namitsharma99/fileHandlingUs...

JAVASCRIPT SAMPLES - TIC TAC TOE GAME & DYNAMIC TABLE CREATION IN JSP
Hello Buddies. It's time to play tic-tac-toe, but this time, not with pen and paper. We will create our own page that allows us to ...

Ads
Head First Java:
A...
INR 870.00

Shop now
Labels

AJAX algo Amazon Web Services Android Angular 2 Angular Components Apache httpd apache poi API API GATEWAY APK Automate build AWS AWS and Gmail AWS Email AWS Lambda AWS Lambda Node JS AWS Notification
SES backup binary search binary tree Bootstrap browser issue BST chat Cheat sheet chrome class mediator cloning code code-snippet Complexity Analysis concurrency consumer core java css CSV curl custom mediator dail
structures Data Structures and Algorithms database management deep download DSA DTMF eclipse EDM Electronic Digital Music electronic music Electronics Enum epic violins ESB esb5 events EXample angular 2 ex

fedora file firefox foreach mediator game games Git Git Hub Git Lab Git Repo Go Go Tutorials GoLang hello world Hibernate hip hop html HTTP GET POST PUT DELETE J2EE Java JAVA. Core JAVA java
Jenkins jquery jQuery in Angular 2 JS JSP kafka KEYGEN LAMBDA linear search mediation messaging microservices mozilla MSTSC multi threading MySQL NG-2 NODEJS NPM Path Annotations Payload Mediator POJO produc
PUTTY quick reference read text file read write csv remote access REST S3 schedulers sequence Server shallow shooting game small programs snake game socket programming Speech to Text springboot SSH stored procedures
questions tables text file writer thecodebuddy tic-tac-toe game time complexity topic Trance TUNNEL unix upload version-check white paper WINDOWS Workbench WSO2 WSO2 ESB XML JSON transformation zookeeper

Awesome Inc. theme. Powered by Blogger.

You might also like