SlideShare a Scribd company logo
1 of 21
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

What's hot

For each component in mule
For each component in muleFor each component in mule
For each component in muleRajkattamuri
 
Expression filter in Mule
Expression filter in MuleExpression filter in Mule
Expression filter in MuleMohammed246
 
Group Web Presentation Week13
Group Web Presentation Week13Group Web Presentation Week13
Group Web Presentation Week13HayatoI
 
Mulesoftconnectors
MulesoftconnectorsMulesoftconnectors
MulesoftconnectorsManav Prasad
 
Experience with mulesoft
Experience with mulesoftExperience with mulesoft
Experience with mulesoftManav Prasad
 
Expression filter in Mule
Expression filter in MuleExpression filter in Mule
Expression filter in MuleKhan625
 
Mule mule management console
Mule  mule management consoleMule  mule management console
Mule mule management consoleD.Rajesh Kumar
 
Filter expression in mule
Filter expression in muleFilter expression in mule
Filter expression in muleRajkattamuri
 
Mule with drools
Mule with droolsMule with drools
Mule with droolsF K
 
Mule ESB session day 1
Mule ESB session day 1Mule ESB session day 1
Mule ESB session day 1kkk_f17
 

What's hot (18)

Mule and web services
Mule and web servicesMule and web services
Mule and web services
 
Mule with velocity
Mule with velocityMule with velocity
Mule with velocity
 
Soap request in mule
Soap request in mule Soap request in mule
Soap request in mule
 
For each component in mule
For each component in muleFor each component in mule
For each component in mule
 
Expression filter in Mule
Expression filter in MuleExpression filter in Mule
Expression filter in Mule
 
Timer Interceptor in Mule
Timer Interceptor in MuleTimer Interceptor in Mule
Timer Interceptor in Mule
 
Spicing your mule response
Spicing your mule responseSpicing your mule response
Spicing your mule response
 
Group Web Presentation Week13
Group Web Presentation Week13Group Web Presentation Week13
Group Web Presentation Week13
 
Mulesoftconnectors
MulesoftconnectorsMulesoftconnectors
Mulesoftconnectors
 
Web server
Web serverWeb server
Web server
 
Experience with mulesoft
Experience with mulesoftExperience with mulesoft
Experience with mulesoft
 
Expression filter in Mule
Expression filter in MuleExpression filter in Mule
Expression filter in Mule
 
Mule mule management console
Mule  mule management consoleMule  mule management console
Mule mule management console
 
Filter expression in mule
Filter expression in muleFilter expression in mule
Filter expression in mule
 
Simple service rest
Simple service restSimple service rest
Simple service rest
 
Mule with drools
Mule with droolsMule with drools
Mule with drools
 
MULE-JAAS
MULE-JAASMULE-JAAS
MULE-JAAS
 
Mule ESB session day 1
Mule ESB session day 1Mule ESB session day 1
Mule ESB session day 1
 

Similar to Webapplicationwithmule by nagarjuanreddy

Sending the data already gathered from the client to the Server
Sending the data already gathered from the client to the ServerSending the data already gathered from the client to the Server
Sending the data already gathered from the client to the Serverhussam242
 
Mashups and Web Services
Mashups and Web ServicesMashups and Web Services
Mashups and Web Servicesgiurca
 
How to – wrap soap web service around a database
How to – wrap soap web service around a databaseHow to – wrap soap web service around a database
How to – wrap soap web service around a databaseSon Nguyen
 
Mule with stored procedure
Mule with stored procedureMule with stored procedure
Mule with stored proceduremdfkhan625
 
Stored procedure in mule
Stored procedure in muleStored procedure in mule
Stored procedure in muleManav Prasad
 
Mulethenewtechnology 12549172699166-phpapp03-160421133841
Mulethenewtechnology 12549172699166-phpapp03-160421133841Mulethenewtechnology 12549172699166-phpapp03-160421133841
Mulethenewtechnology 12549172699166-phpapp03-160421133841ppts123456
 
Mule technology
Mule technologyMule technology
Mule technologyF K
 
Mule with stored procedure
Mule with stored procedureMule with stored procedure
Mule with stored procedurejaveed_mhd
 
Mule with stored procedure
Mule with stored procedureMule with stored procedure
Mule with stored procedureMohammed625
 
Stored procedure in Mule
Stored procedure in MuleStored procedure in Mule
Stored procedure in MuleKhasim Saheb
 
Mule ESB
Mule ESBMule ESB
Mule ESBniravn
 

Similar to Webapplicationwithmule by nagarjuanreddy (20)

Using ajax in mule
Using ajax in muleUsing ajax in mule
Using ajax in mule
 
Sending the data already gathered from the client to the Server
Sending the data already gathered from the client to the ServerSending the data already gathered from the client to the Server
Sending the data already gathered from the client to the Server
 
Mashups and Web Services
Mashups and Web ServicesMashups and Web Services
Mashups and Web Services
 
Web Service
Web ServiceWeb Service
Web Service
 
How to – wrap soap web service around a database
How to – wrap soap web service around a databaseHow to – wrap soap web service around a database
How to – wrap soap web service around a database
 
Mule with stored procedure
Mule with stored procedureMule with stored procedure
Mule with stored procedure
 
Stored procedure in mule
Stored procedure in muleStored procedure in mule
Stored procedure in mule
 
Mulethenewtechnology 12549172699166-phpapp03-160421133841
Mulethenewtechnology 12549172699166-phpapp03-160421133841Mulethenewtechnology 12549172699166-phpapp03-160421133841
Mulethenewtechnology 12549172699166-phpapp03-160421133841
 
Mule technology
Mule technologyMule technology
Mule technology
 
Mule technology
Mule technologyMule technology
Mule technology
 
Mule technology
Mule technologyMule technology
Mule technology
 
Mule ESB
Mule ESBMule ESB
Mule ESB
 
Mule with stored procedure
Mule with stored procedureMule with stored procedure
Mule with stored procedure
 
Mule stored procedure
Mule stored procedureMule stored procedure
Mule stored procedure
 
Mule with stored procedure
Mule with stored procedureMule with stored procedure
Mule with stored procedure
 
Stored procedure in Mule
Stored procedure in MuleStored procedure in Mule
Stored procedure in Mule
 
Mule ESB
Mule ESBMule ESB
Mule ESB
 
Mule soft ppt 3
Mule soft ppt  3Mule soft ppt  3
Mule soft ppt 3
 
Introduction to mule soft
Introduction to mule softIntroduction to mule soft
Introduction to mule soft
 
Mule ESB
Mule ESBMule ESB
Mule ESB
 

More from Nagarjuna reddy

Transformation from csv to xml
Transformation  from csv to xmlTransformation  from csv to xml
Transformation from csv to xmlNagarjuna reddy
 
Translation from csv to xml
Translation from csv to xmlTranslation from csv to xml
Translation from csv to xmlNagarjuna reddy
 
Muleexpressiontransformer by nagarjuanreddy
Muleexpressiontransformer by nagarjuanreddyMuleexpressiontransformer by nagarjuanreddy
Muleexpressiontransformer by nagarjuanreddyNagarjuna reddy
 
Iot and mulesoft nagarjuna reddy
Iot and mulesoft nagarjuna reddyIot and mulesoft nagarjuna reddy
Iot and mulesoft nagarjuna reddyNagarjuna reddy
 
Introductiontocloudhubwithmulesoft by nagarjunareddy
Introductiontocloudhubwithmulesoft by nagarjunareddyIntroductiontocloudhubwithmulesoft by nagarjunareddy
Introductiontocloudhubwithmulesoft by nagarjunareddyNagarjuna reddy
 

More from Nagarjuna reddy (7)

Dataweave by nagarjuna
Dataweave  by nagarjunaDataweave  by nagarjuna
Dataweave by nagarjuna
 
Dataweave nagarjuna
Dataweave nagarjunaDataweave nagarjuna
Dataweave nagarjuna
 
Transformation from csv to xml
Transformation  from csv to xmlTransformation  from csv to xml
Transformation from csv to xml
 
Translation from csv to xml
Translation from csv to xmlTranslation from csv to xml
Translation from csv to xml
 
Muleexpressiontransformer by nagarjuanreddy
Muleexpressiontransformer by nagarjuanreddyMuleexpressiontransformer by nagarjuanreddy
Muleexpressiontransformer by nagarjuanreddy
 
Iot and mulesoft nagarjuna reddy
Iot and mulesoft nagarjuna reddyIot and mulesoft nagarjuna reddy
Iot and mulesoft nagarjuna reddy
 
Introductiontocloudhubwithmulesoft by nagarjunareddy
Introductiontocloudhubwithmulesoft by nagarjunareddyIntroductiontocloudhubwithmulesoft by nagarjunareddy
Introductiontocloudhubwithmulesoft by nagarjunareddy
 

Recently uploaded

SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 

Recently uploaded (20)

SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 

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 