How to make a deployable mule ESB application military file

Can someone please help me how to make war a simple mule app. My mule application consists of a single mule-config.xml file. I have done this mule project in its entirety and can run it as a mule server. My requirement is to conduct a war and deploy it on a tomcat or tcat server.

Thanks and Regards, Arijit

+2
source share
1 answer

As in the user manual :

To embed Mule inside webapp, you provide one or more locations of the configuration file as context parameters and include a context listener to initialize the Mule server.

So just add this to your web.xml with mule-config.xml at the root of your class path (e.g. in src / main / resources):

<context-param> <param-name>org.mule.config</param-name> <param-value>mule-config.xml</param-value> </context-param> <listener> <listener-class>org.mule.config.builders.MuleXmlBuilderContextListener</listener-class> </listener> 

EDIT I opened the original demo version: https://github.com/ddossot/mule-webapp-example

+4
source

All Articles