Write a function in your shared lib that checks if Active MQ has been
started yet, and starts it if not. Then, in each webapp add a
ServletContextListener with a contextInitialized method that calls the
aforementioned function. Thus, Active MQ will be initialized when the
first webapp starts up, whichever it is.
-- 
Len

On 7/26/07, suchitha koneru <[EMAIL PROTECTED]> wrote:
> 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