Hi James, Thanks for the reply. I have set the JBoss jndi properties already. So I do this in the code :- << Properties props = new Properties(); props.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.apache.activemq.jndi.ActiveMQInitialContextFactory"); props.setProperty(Context.PROVIDER_URL,"tcp://localhost:61616"); javax.naming.Context ctx = new InitialContext(props); Queue queue = (Queue) ctx.lookup("activemq/queue/outbound"); queueConnectionFactory = (ActiveMQConnectionFactory) ctx.lookup ("activemq/QueueConnectionFactory"); connection = queueConnectionFactory.createQueueConnection(); connection.start(); QueueSession session = connection.createQueueSession(false,Session.AUTO_ACKNOWLEDGE); queueSender = session.createSender(queue);
>> However I get the following error : javax.naming.NameNotFoundException: activemq/queue/outbound I have set the jndi context to global for this queue in activemq_jms-ds.xml inside Jboss server deploy. I am trying this from standalone Java client. Would that be the problem or is there something I am missing? Thanks for your help so far Regards, An James.Strachan wrote: > > 2008/4/29 Alex Soto <lexs...@gmail.com>: >> James Strachan wrote: >>> >>> 2008/4/29 Alex Soto <lexs...@gmail.com>: >>> >>>> >>>> I also have the same problem. >>>> The suggestions I've seen is to instantiate ActiveMQConnectionFactory >>>> instead of getting it from JNDI. As a workaround it is satisfactory >>>> but >>>> this solution does not go very far. Certainly it does not help if the >>>> client >>>> code is not available for modification. >>>> >>>> Does anybody knows if there is a plan to solve this issue? >>>> >>> >>> Just use the ActiveMQ JNDI provider then? >>> http://activemq.apache.org/jndi-support.html >>> >> >> Is that possible when ActiveMQ runs embedded within JBoss? How? > > The ActiveMQ JNDI provider is purely local to the JMS client - it > doesn't matter where the broker is. > > For more background see this FAQ entry: > http://activemq.apache.org/how-do-i-create-new-destinations.html > > > -- > James > ------- > http://macstrac.blogspot.com/ > > Open Source Integration > http://fusesource.com/ > > -- View this message in context: http://www.nabble.com/JBoss-and-ActiveMQ-with-remote-JNDI-tp16961289p24860681.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.