I could not get any helpful information, how to auto-start ActiveMQ broker from Tomcat. And thus, I finally, after 4 fruitful hours, configured.
This is my valuable contribution to open-source community.
Install ActiveMQ and Tomcat from following places,
Also download activemq web console for autostarting activemq instance from tomcat.
Copy “activemq-all-5.4.2.jar” from activemq\lib to tomcat\lib
Copy “activemq-web-console-5.4.2.war” inside tomcat webapps
Configure %CATALINA_HOME%\bin\catalina.bat or .sh by adding the following line
set JAVA_OPTS=”-Dwebconsole.jms.url=tcp://localhost:61616 -Dwebconsole.type=properties”
If you have already set the java, catalina and activemq path variable then you can start the tomcat service from the console as,
Enter the following on the browser address bar,
ActiveMQ Web Console
If someone needs further information, I’m happy to help.
Open-Source community rocks !!!