2009/8/4 jworkman <jwork...@oidev.com>: > > I am not sure I follow... When I do ctx.lookup("dyanmicQueues/whatever") what > will this do? Create a queue if one does not exist in the destination amq > server?
Yes, see this FAQ entry... http://activemq.apache.org/how-do-i-create-new-destinations.html > What is happening currently on the remote (calling) client: I can access the > factory and create the connection with a session okay, but when I try to do > a lookup for the domain/queue (which I explicitly created by calling > createQueue("domain/queue") on destination amq server) I get queue not > found. > > Is prepending dynamicQueues/ the only way around? use the "dynamicQueues/whatever" to look up the Queue object in JNDI (which will map to the "whatever" queue in ActiveMQ. If you don't want to use JNDI to lookup destinations, just call createQueue(String) - then there is no need to register anything in JNDI for queue/topics, other than your ConnectionFactory - of which you'll probably only need a single one. -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://fusesource.com/