Re: Sharing embedded broker across webapp contexts

2007-06-18 Thread uma_rk
Thank you very much! /U -- Original message -- From: "Mario Siegenthaler" <[EMAIL PROTECTED]> > I just played around with it a little: The easiest syntax is: > > name="jms/ConnectionFactory" > auth="Container" > type="org.apache.act

Re: Sharing embedded broker across webapp contexts

2007-06-18 Thread Mario Siegenthaler
I just played around with it a little: The easiest syntax is: alternative is brokerURL="vm://localhost?brokerConfig=xbean:file:./activemq.xml" depending on whether you want the configuration xml within or outside the classpath. You can also configure your broker using the Broker-URI

Re: Sharing embedded broker across webapp contexts

2007-06-18 Thread uma_rk
Mario, How do I specify the network connector in the JNDI configuration? Is there a way to point Tomcat to the xbean configuration for the broker instead of replicating the configuration element by element? I use the xbean config file to specify the JMX configuration, ceiling on the memory foot

Re: Sharing embedded broker across webapp contexts

2007-06-18 Thread uma_rk
Mario, Thanks for the explanation. If I incorporate the JNDI configuration of amq, would Tomcat automatically start the broker? I need to create an embedded broker with network connectors. If I specify xbean configuration in JNDI, would Tomcat automatically create the broker and issue broker.sta

Re: Sharing embedded broker across webapp contexts

2007-06-18 Thread Mario Siegenthaler
I think the easiest way would be to use a broker that is started by tomcat. This can be done using JNDI-configurations in the tomcats server.xml (see http://activemq.apache.org/tomcat.html). To connect to the broker you can either get the connection-factory via JNDI (standard way) or just make a n

Sharing embedded broker across webapp contexts

2007-06-17 Thread uma_rk
I am using activemq 4.1.1 on JDK6 with Tomcat 5.5.x. I have a couple of webapp contexts in a servlet container that use activemq broker. I have been using an external broker but would like to embed the broker in the servlet container. I have the following questions. 1) Assume I have webapps A a