Hi not sure if this jndi.properties is expected to work but tomee configuration is intended to go in tomee.xml: - http://tomee.apache.org/jms-resources-and-mdb-container.html - http://tomee.apache.org/jmsconnectionfactory-config.html - http://tomee.apache.org/ng/admin/configuration/resources.html
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> | JavaEE Factory <https://javaeefactory-rmannibucau.rhcloud.com> 2016-07-21 10:42 GMT+02:00 sureshshine <[email protected]>: > Hi All, > > I integrated ActiveMQ with Tomee+ and I tried to configure JMS connection > by > using jndi but it was not working. > > I created jndi.properties and placed that in webapps\activemq\WEB-INF\ , > ActiveMQ console war which is running in the tomee+ > > > java.naming.factory.initial = > org.apache.activemq.jndi.ActiveMQInitialContextFactory > > # use the following property to configure the default connector > #java.naming.provider.url = vm://localhost > java.naming.provider.url = tcp://localhost:61616 > > # use the following property to specify the JNDI name the connection > factory > # should appear as. > connectionFactoryNames = connectionFactory, queueConnectionFactory, > topicConnectionFactry > > # register some queues in JNDI using the form > # queue.[jndiName] = [physicalName] > queue.MyQueue = MyDestQueue > > > # register some topics in JNDI using the form > # topic.[jndiName] = [physicalName] > #topic.MyTopic = example.MyTopic > > # END SNIPPET: jndi > > Please let know the where i need to add these configuration , in tomee+ or > activemq war > > Thanks in Advance > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/Tomme-and-JMS-with-JNDI-configuration-tp4679415.html > Sent from the TomEE Dev mailing list archive at Nabble.com. >
