I have an embedded broker in tomcat that my webapp clients are connecting to fine. I would like some remote clients in another jvm be able to connect to the embedded broker. How do I set this up? this worked for embedded clients:
server.xml fragment: <Resource auth="Container" name="jms/ConnectionFactory" type="org.apache.activemq.ActiveMQConnectionFactory" description="JMS Connection Factory" factory="org.apache.activemq.jndi.JNDIReferenceFactory" brokerURL="vm://localhost" brokerName="MyActiveMQBroker" useEmbeddedBroker="true"/> This isn't working for remote clients, but my embedded clients still connect using vm url(vm://localhost): <Resource auth="Container" name="jms/ConnectionFactory" type="org.apache.activemq.ActiveMQConnectionFactory" description="JMS Connection Factory" factory="org.apache.activemq.jndi.JNDIReferenceFactory" brokerURL="vm:(broker:(tcp://localhost:61616))" brokerName="MyActiveMQBroker" useEmbeddedBroker="true"/> My remote clients give this error: Could not connect to broker URL: tcp://localhost:61616. Reason: java.net.ConnectException: Connection refused -- View this message in context: http://activemq.2283324.n4.nabble.com/embedded-broker-that-can-be-used-for-local-clients-and-remote-clients-tp4586905p4586905.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.