Hello answered inline
2016-07-06 13:30 GMT+02:00 Dignesh <[email protected]>: > Hi Romain, > > Just few questions on configuring the resources in client. > > System.setProperty("aConnectionFactory", > > "connectionfactory:org.apache.activemq.ActiveMQConnectionFactory:tcp://localhost:11616"); > > So in the above property.What should be the value of the port - Is it > something the serverURL we specify for resource in tomee.xml file. > > Yes, the network connector url of the broker > System.setProperty("aQueue", > "queue:org.apache.activemq.command.ActiveMQQueue:LISTENER"); > > If I need to configure a topic in the client - Should I add the property in > the below format ? > > System.setProperty("xyz", > "topic:org.apache.activemq.command.ActiveMQTopic:LISTENER"); > > yes > > Currently my client program contains below 2 system properties. And I dont > see any issues with look ups.But Messages I send are not received by the > listener. So is there any other configuration where I am going wrong. > System.setProperty("digneshConnection", > > "connectionfactory:org.apache.activemq.ActiveMQConnectionFactory:tcp://localhost:61616"); > System.setProperty("xyz", > "topic:org.apache.activemq.command.ActiveMQTopic:LISTENER"); > > > will just do a new ActiveMQConnectionFactory("tcp://localhost:61616"); and new ActiveMQTopic("LISTENER"); If these settings (url and topic name) are not valid then you will not hit your server. > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/Remote-JNDI-look-up-to-ConnectionFactories-is-failing-tp4679228p4679237.html > Sent from the TomEE Dev mailing list archive at Nabble.com. >
