Menu Search Sign up

Mule

Deploying Mule ESB and your Mule ESB application into JBOSS

1. Put everthing into a war file, which has the following contents (among other stuff you may have)

2. In the web.xml, configure the following, among other stuff:

<context-param>
<param-name>org.mule.config</param-name>
<param-value>main-mule-config.xml</param-value>
</context-param>

<listener>
<listener-class>org.mule.config.builders.MuleXmlBuilderContextListener</listener-class>
</listener>

<servlet>
<servlet-name>muleServlet</servlet-name>
<servlet-class>org.mule.transport.servlet.MuleReceiverServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>muleServlet</servlet-name>
<url-pattern>/<your restful web service path>/*</url-pattern>
</servlet-mapping> 

So your restful web service, say RoleDataWebService, will be accessed at http://<your server name>:<your port>/<your web app name>/<your restful web service path>/RoleDataWebService 

3. Put the main-mule-config.xml under ./WEB-INF/classes

4. In your ./WEB-INF/lib, include the following Mule jar files:

mule-core-3.3.0.jar

mule-module-annotations-3.3.0.jar

mule-module-builders-3.3.0.jar

mule-module-client-3.3.0.jar

mule-module-cxf-3.3.0.jar

mule-module-management-3.3.0.jar

mule-module-spring-config-3.3.0.jar

mule-module-spring-extras-3.3.0.jar

mule-module-spring-security-3.3.0.jar

mule-module-xml-3.3.0.jar

mule-transport-file-3.3.0.jar

mule-transport-http-3.3.0.jar

mule-transport-jms-3.3.0.jar

mule-transport-quartz-3.3.0.jar

mule-transport-servlet-3.3.0.jar

mule-transport-ssl-3.3.0.jar

mule-transport-tcp-3.3.0.jar

mule-transport-vm-3.3.0.jar

Using Spring beans as flow component

https://docs.mulesoft.com/mule-user-guide/v/3.8/using-spring-beans-as-flow-components

Tutorial

https://docs.mulesoft.com/mule-user-guide/v/3.8/mule-concepts 

https://technicalmumbojumbo.wordpress.com/2014/01/10/mule-esb-tutorial-series-an-introduction/ 

https://docs.mulesoft.com/mule-user-guide/v/3.8/ 

Reference

https://docs.mulesoft.com/ 

Anypoint Studio download

https://www.mulesoft.com/lp/dl/studio (you need to register to download; but it is free) 

mule-core-3.3.0.jar
mule-module-annotations-3.3.0.jar
mule-module-builders-3.3.0.jar
mule-module-client-3.3.0.jar
mule-module-cxf-3.3.0.jar
mule-module-management-3.3.0.jar
mule-module-spring-config-3.3.0.jar
mule-module-spring-extras-3.3.0.jar
mule-module-spring-security-3.3.0.jar
mule-module-xml-3.3.0.jar
mule-transport-file-3.3.0.jar
mule-transport-http-3.3.0.jar
mule-transport-jms-3.3.0.jar
mule-transport-quartz-3.3.0.jar
mule-transport-servlet-3.3.0.jar
mule-transport-ssl-3.3.0.jar
mule-transport-tcp-3.3.0.jar
mule-transport-vm-3.3.0.jar