You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by fngaserin <fn...@gmail.com> on 2010/04/27 15:08:59 UTC

Configure DiscoveryURI for Broker URI

I'm trying to configure embedded ActiveMQ on Tomcat 6.0.26 with JNDI. What
I'm trying to achieve is to have a clustered system. Tomcat is clustered and
I also want the embedded MQ server to be clustered too. I am avoiding XBean
and I chose to use Broker URI instead.

This is my ActiveMQConnectionFactory resource:

    <Resource 
    	auth="Container" 
       
brokerURL="vm:broker:(tcp://localhost:61616,network:multicast://default)?brokerName=tomcat0&amp;useJmx=false"
        description="JMS Connection Factory" 
    	factory="org.apache.activemq.jndi.JNDIReferenceFactory" 
    	name="jms/connectionFactory" 
    	type="org.apache.activemq.ActiveMQConnectionFactory" 
    	useEmbeddedBroker="true"/>

The connection will run properly except I can't find any reference on
configuring the discovery uri on the brokerURL. I have tried a number of
configurations, however I have not been able to find the answer. I tried
adding discovery:multicast://default in between the tcp and network uri,
however that does not seem to work. 
-- 
View this message in context: http://old.nabble.com/Configure-DiscoveryURI-for-Broker-URI-tp28376732p28376732.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.