The original Article is on the mule official website. Here, I have made a simple translation with a limited level. Please forgive me for any shortcomings ~ Install Mule in Tomcat in order to hot deploy your Mule application, you need to take the following steps to install Mule in Tomcat: 1. download it from the apache homepage and install ApacheTomcat6 according to the standard configuration. 2. In
The original Article is on the mule official website. Here, I have made a simple translation with a limited level. Please forgive me for any shortcomings ~
InMcInstall Mule in
To enable hot deployment of your Mule application, install the Mule on TomCatThe following steps are required:
1. Download apache Tomcat6 from the Apache homepage and install it according to the standard configuration.
2. In the tomcat root directory, add the following line of code to the conf/server. xml file:
- <Listener ClassName="Org.mule.moDuLe. tomcat. MuleTomcatListener" />
3. Copy all subfolders except the boot folder in the lib folder in the Mule main directory to the mule-libs folder in the Tomcat root directory (if not, create one by yourself ). You do not need to modify the directory.
4. Copy the mule-module-tomcat-. jar file from the mule-libs/mule/directory to your Tomcat root directory (if the root directory does not exist ).
5. Copy the following jar file from the lib/boot/directory of the Mule file to the mule-libs/opt/directory under Tomcat:
- Jcl104-over-slf4j-1.5.0.jar
- Log4j-1.2.14.jar
- Slf4j-api-1.5.0.jar
- Slf4j-log4j12-1.5.0.jar
6. In the conf/catalina. properties file under Tomcat, add the following code to common. loader (separated from existing values by commas ):
- $ {Catalina. home}/mule-libs/user /*. jar, $ {catalina. home}/mule-libs/mule /*. jar, $ {catalina. home}/mule-libs/opt /*. jar
Copy the Mule application file to Tomcat.
First, package your configuration file and common Java classes files into WAR files (For details, see the hot deployment Mule file.), And then copy it to Tomcat/webapps.
Hot deployment of Mule applications
When you package your Mule application file in WAR format and copy it to Tomcat/webapps, Tomcat will be automatically deployed. When you need to modify the configuration or java file in your web application, you only needExtractFile. Then, modify the web. xml in Tomcat (for example, add or delete several spaces and save them) to trigger Tomcat's re-deployment of the application. In addition, you can modify the source file, package the source file as a WAR file, and copy the new WAR format file to Tomcat/webapps, this can also trigger Tomcat redeployment.
My personal opinion is as follows:: It seems that Mule2.0.2 does not contain mule-module-tomcat- The. jar file is self-contained in version 3.1.2. Other versions include 2.2.9, 3.1.3, and 3.2.0 on the official website.