Thanks for response. This works for me too. But it is a very big limitation to require the client to hard code the physical queue name (in your example, example.MyQueue). It defeats the purpose of jndi. The client should only need to know the jndi name. So no code change is necessary when the server change the physical name.
It is now a funny situation. If I lookup from activemq jndi, I have to pass in the physical name. I can actually lookup the topic name from jboss jndi. But if I lookup from jboss jndi, connection factory will return null (It looks like a bug to me as context list binding returns the correct class name). Neither of the jndi server gets me both things right. Thanks for your help though. -Wallace -- View this message in context: http://www.nabble.com/JBoss-integration-and-lookup-of-connection-factories.-tf3061463s2354.html#a9922506 Sent from the ActiveMQ - User mailing list archive at Nabble.com.