ServerUrl and BrokerXmlConfig are conflicting in your resource
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> 2015-09-09 20:31 GMT-07:00 hkgot <[email protected]>: > I think so. > > My remote client has this: > System.setProperty("aConnectionFactory", > > "connectionfactory:org.apache.activemq.ActiveMQConnectionFactory:tcp://localhost:61616"); > ConnectionFactory connectionFactory = (ConnectionFactory) > initialContext.lookup("java:aConnectionFactory"); > > tomee.xml has this; > > <Resource id="MyJmsResourceAdapter" type="ActiveMQResourceAdapter"> > BrokerXmlConfig = broker:(tcp://localhost:61616) > ServerUrl = vm://localhost > </Resource> > <Resource id="MyJmsConnectionFactory" > type="javax.jms.ConnectionFactory"> > ResourceAdapter = MyJmsResourceAdapter > </Resource> > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/How-to-reference-connection-factory-and-queues-from-code-tp4675980p4676173.html > Sent from the TomEE Users mailing list archive at Nabble.com. >
