Transferred from: http://marshal.easymorse.com/archives/1414
ACTIVEMQ can be deployed and executed separately, such as the installation and execution methods mentioned in the simplest applications like ACTIVEMQ. But sometimes it needs to be deployed as a Web application in a servlet container, which facilitates collaboration with other Web applications.
There is a document on the official document that addresses this requirement:
Http://activemq.apache.org/web-console.html
According to the documentation, use Tomcat 6.0.20,ACTIVEMQ 5.2.0. Achieve the above requirements. First you need to download:
- Activemq-web-console
- Activemq-all
The former is copied directly to Tomcat's WebApps directory. The latter is copied to the Tomcat/lib directory.
Not mentioned in the documentation, but the class libraries that need to be added in tomcat6.0.20 are for JSTL support:
- Jstl-1.1.0.jar
- Standard-1.1.0.jar
Then launch Tomcat, which can be accessed via the following link:
http://localhost:8080/activemq-web-console-5.2.0
Unlike the official documentation above, this content is not required:
Set java_opts= "-dwebconsole.type=properties-dwebconsole.jms.url=tcp://localhost:61616-dwebconsole.jmx.url= service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi-dwebconsole.jmx.role=-dwebconsole.jmx.password= "
Set the error instead. If not set, ACTIVEMQ starts port 61616 by default. And can be executed smoothly.
Http://www.cnblogs.com/sunxucool/archive/2013/01/23/2873504.html
Tomcat under Deployment Activemq (RPM)