SlideShare a Scribd company logo
WEB APPLICATION WITH
MULE
BY NAGARJUNAREDDY
There are often question raised on deploying and running Web application in
Mule.
People often ask “is it possible to deploy and run Web application in Mule “
??
And the answer is Yes
Before we start how, I like to have a overview on the similarities and difference
between Mule server and a Web application server
Similarities
• They both allow you to run multiple applications simultaneously.
• They both provide an application container. What that means is, they
both provide an environment in which an application can run, acting as an
intermediary between application code and the operating system, and
providing database access, easier communication over the network,
memory management, lifecycle management, and other services.
• They both allow us to manage your applications at runtime.
Source : MuleSoft
Differences
Mule specializes in three things:-
• It acts as a platform for applications that move data from one place to
another and often transform that data along the way so that it is readable
at the other end
• It exports services to other applications
• It provides orchestrating services
Source : MuleSoft
Now, the question is it possible to deploy a Web application in Mule server
which can interact or integrate with Mule application running on the server
???
Yes .. It is possible …… Let’s see how ….
Mule can run JavaEE web-apps thanks to its embedded Jetty container.
Let us consider our web-app is mule.war, the layout we want in our Mule
application Zip is
And our mule-config.xml will host the jetty server:
Now, let’s create our application such that the Web application can interact with
our Mule :-
Here we can see we enter some value from a web page which is
carried at the backend by a web service and the data is
stored/retrieve from Database
So, we will create another Mule flow that will expose the web service to carry
the data backend :-
So, the Mule flow will be :-
.
And our User interface file will be :-
The folder structure of our Mule application will be :-
.
Let’s test our application , and we will be hitting url http://localhost:8083/mule/ and
we will get following :-
We can see our JSP page has appeared on the screen
.
Now let’s put some value and hit insert button, :-
.
We will get the response back to the browser
You can see easily that the backend web service exposed in Mule has inseted
the data into the database and returned the response back to the JSP page
This is what happened behind …. When we entered the value in our web page (JSP)
and hit the insert button, the data is carried into the database by the backend web
service hosted in Mule
Now after the data has been inserted into database, the web service carries the
response back to the web page (JSP)
So, we can see that Mule can host the web application using Jetty connector
and we can interact with the web application with our other Mule flows easily,
ad we have done here with a web service from our Mule flow which carried all
the data to and from the web page .
Hope you liked this small tricks in Mule.
If you have any similar tricks in Mule, please do share it with all and let our Mule
community grow
Happy coding 
Webapplicationwithmule by nagarjuanreddy

More Related Content

PPTX
Webapplicationwithmule by raju
PPTX
Web application with mule
PPTX
Soap In Mule
PPTX
Send email attachment using smtp in mule esb
PPTX
Validate soap request in mule
PPTX
Soap in mule
PPTX
Validate Soap Request in Mule
PPTX
Configurare http mule
Webapplicationwithmule by raju
Web application with mule
Soap In Mule
Send email attachment using smtp in mule esb
Validate soap request in mule
Soap in mule
Validate Soap Request in Mule
Configurare http mule

What's hot (18)

PPT
Mule and web services
PPTX
Mule with velocity
PPTX
Soap request in mule
PPTX
For each component in mule
PPTX
Expression filter in Mule
PPTX
Timer Interceptor in Mule
PPTX
Spicing your mule response
PPT
Group Web Presentation Week13
PPTX
Mulesoftconnectors
PPTX
Web server
PPTX
Experience with mulesoft
PPTX
Expression filter in Mule
PPT
Mule mule management console
PPTX
Filter expression in mule
PPTX
Simple service rest
PPTX
Mule with drools
 
PPT
MULE-JAAS
PPTX
Mule ESB session day 1
Mule and web services
Mule with velocity
Soap request in mule
For each component in mule
Expression filter in Mule
Timer Interceptor in Mule
Spicing your mule response
Group Web Presentation Week13
Mulesoftconnectors
Web server
Experience with mulesoft
Expression filter in Mule
Mule mule management console
Filter expression in mule
Simple service rest
Mule with drools
 
MULE-JAAS
Mule ESB session day 1
Ad

Similar to Webapplicationwithmule by nagarjuanreddy (20)

PPTX
Using ajax in mule
DOCX
Sending the data already gathered from the client to the Server
PPT
Mashups and Web Services
PPT
Web Service
PPTX
How to – wrap soap web service around a database
PPTX
Mule with stored procedure
PPTX
Stored procedure in mule
PPT
Mulethenewtechnology 12549172699166-phpapp03-160421133841
PPT
Mule technology
PPT
Mule technology
PPT
Mule technology
 
PPT
Mule ESB
PPTX
Mule stored procedure
PPTX
Mule with stored procedure
PPTX
Mule with stored procedure
PPTX
Stored procedure in Mule
PPT
PPTX
Mule soft ppt 3
PDF
Introduction to mule soft
PPT
Mule ESB
Using ajax in mule
Sending the data already gathered from the client to the Server
Mashups and Web Services
Web Service
How to – wrap soap web service around a database
Mule with stored procedure
Stored procedure in mule
Mulethenewtechnology 12549172699166-phpapp03-160421133841
Mule technology
Mule technology
Mule technology
 
Mule ESB
Mule stored procedure
Mule with stored procedure
Mule with stored procedure
Stored procedure in Mule
Mule soft ppt 3
Introduction to mule soft
Mule ESB
Ad

More from Nagarjuna reddy (7)

PPTX
Dataweave by nagarjuna
PPTX
Dataweave nagarjuna
PPTX
Transformation from csv to xml
PPTX
Translation from csv to xml
PPTX
Muleexpressiontransformer by nagarjuanreddy
PPTX
Iot and mulesoft nagarjuna reddy
PPTX
Introductiontocloudhubwithmulesoft by nagarjunareddy
Dataweave by nagarjuna
Dataweave nagarjuna
Transformation from csv to xml
Translation from csv to xml
Muleexpressiontransformer by nagarjuanreddy
Iot and mulesoft nagarjuna reddy
Introductiontocloudhubwithmulesoft by nagarjunareddy

Recently uploaded (20)

PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
Encapsulation theory and applications.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
Web App vs Mobile App What Should You Build First.pdf
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
August Patch Tuesday
PDF
Mushroom cultivation and it's methods.pdf
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
A Presentation on Artificial Intelligence
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Digital-Transformation-Roadmap-for-Companies.pptx
cloud_computing_Infrastucture_as_cloud_p
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Group 1 Presentation -Planning and Decision Making .pptx
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
Assigned Numbers - 2025 - Bluetooth® Document
Enhancing emotion recognition model for a student engagement use case through...
DP Operators-handbook-extract for the Mautical Institute
A novel scalable deep ensemble learning framework for big data classification...
Encapsulation theory and applications.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Zenith AI: Advanced Artificial Intelligence
Web App vs Mobile App What Should You Build First.pdf
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
August Patch Tuesday
Mushroom cultivation and it's methods.pdf
Univ-Connecticut-ChatGPT-Presentaion.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
A Presentation on Artificial Intelligence

Webapplicationwithmule by nagarjuanreddy

  • 2. There are often question raised on deploying and running Web application in Mule. People often ask “is it possible to deploy and run Web application in Mule “ ?? And the answer is Yes
  • 3. Before we start how, I like to have a overview on the similarities and difference between Mule server and a Web application server Similarities • They both allow you to run multiple applications simultaneously. • They both provide an application container. What that means is, they both provide an environment in which an application can run, acting as an intermediary between application code and the operating system, and providing database access, easier communication over the network, memory management, lifecycle management, and other services. • They both allow us to manage your applications at runtime. Source : MuleSoft
  • 4. Differences Mule specializes in three things:- • It acts as a platform for applications that move data from one place to another and often transform that data along the way so that it is readable at the other end • It exports services to other applications • It provides orchestrating services Source : MuleSoft
  • 5. Now, the question is it possible to deploy a Web application in Mule server which can interact or integrate with Mule application running on the server ???
  • 6. Yes .. It is possible …… Let’s see how ….
  • 7. Mule can run JavaEE web-apps thanks to its embedded Jetty container. Let us consider our web-app is mule.war, the layout we want in our Mule application Zip is
  • 8. And our mule-config.xml will host the jetty server:
  • 9. Now, let’s create our application such that the Web application can interact with our Mule :- Here we can see we enter some value from a web page which is carried at the backend by a web service and the data is stored/retrieve from Database
  • 10. So, we will create another Mule flow that will expose the web service to carry the data backend :-
  • 11. So, the Mule flow will be :-
  • 12. . And our User interface file will be :-
  • 13. The folder structure of our Mule application will be :-
  • 14. . Let’s test our application , and we will be hitting url http://localhost:8083/mule/ and we will get following :- We can see our JSP page has appeared on the screen
  • 15. . Now let’s put some value and hit insert button, :-
  • 16. . We will get the response back to the browser You can see easily that the backend web service exposed in Mule has inseted the data into the database and returned the response back to the JSP page
  • 17. This is what happened behind …. When we entered the value in our web page (JSP) and hit the insert button, the data is carried into the database by the backend web service hosted in Mule
  • 18. Now after the data has been inserted into database, the web service carries the response back to the web page (JSP)
  • 19. So, we can see that Mule can host the web application using Jetty connector and we can interact with the web application with our other Mule flows easily, ad we have done here with a web service from our Mule flow which carried all the data to and from the web page .
  • 20. Hope you liked this small tricks in Mule. If you have any similar tricks in Mule, please do share it with all and let our Mule community grow Happy coding 