Tutorial : Mule Creating a simplest flow using Http and Java component


In this example, we're going to create the simplest Mule app flow. Our flow basically consist of a Http and a Java component which looks like this :-


User basically connects to something like this :- http://localhost:3003/?username=jeremy.

Query parameter called ussername get pass into java's class and returns "jeremy" or "unknow user" depending on the string passed.

Here is what our java class looks like :-




From the code above, our java class implements mule class callable and we attempted to extract username parameter from 'http.query.params' which is a Map object type. With this, we proceed to get our value by calling get Map's method 

Well, that's it. Done! :)







Comments

Unknown said…
the blog is good and Interactive it is about Mulesoft Developer it is useful for students and Mulesoft Developers for more updates on Mulesoft mulesoft Online training
workday said…
This information is really awesome thanks for sharing most valuable information.
mulesoft training in bangalore
mulesoft training hyderabad

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm