I dont know ActiveMQ but I think you will have to allow "any" WebApp that needs it, to start it, if its not already running.... I think you have 2 options, create a custom JNDI object or create a singleton start up object in common/lib, here is an article http://www.javacoffeebreak.com/articles/designpatterns/index.html

Just remember that the lib is now shared and I imagine you call into this broker to send messages, if so remember to make it thread safe, it possibly is already.

I am curious about what you using it for... I have still to find application for JMS in the TC environment, because sending a message to a servlet from an embedded http client has always served me well... its on port 80, so no firewall problems etc. I guess its because you have message beans in an application server somewhere.... just wondering.

----- Original Message ----- From: "suchitha koneru" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Friday, July 27, 2007 12:48 AM
Subject: broker start up in Tomcat


Hello Tomcat Users,
I am using Tomcat server 5.5.20 along with Java 1.6,
and Active MQ 4.1.1.  There are two web applications A and B which
communicate via the active mq broker. Our application has a requirement of
starting the broker before any of the web apps. Where should I be placing
the code which starts the broker.  I can create a jar file out of the code
and dependent libraries and place it in common/lib. How will I communicate
to Tomcat server that the broker has to be started during the server start
up  process, before any of the web apps ? Any pointers  in this regard ?

thank you ,
Suchitha.



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to