In the latter would the jms client call createQueue would that be up to the server? If up to the server, then how would the calling client access that queue?
James.Strachan wrote: > > 2009/8/4 jworkman <jwork...@oidev.com>: >> >> >> >> James.Strachan wrote: >>> >>> 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. >>> >>> >> >> So in regards to the above does this mean that whatever has to be >> regsitered >> in activemq or will it be so automatically if whatever did not exist? So >> in >> theory, I could call "dyanmicQueues/bob or dynamicQueues/frank" and these >> would get created automatically? > > Yes, dynamicQueues/foo means you can use any value of "foo" at runtime > and it just works - a Queue/Topic will be created for you > automatically. > > Though if you are calling createQueue(String) or createTopic(String) > on a Session, you don't need to do anything with JNDI at all. > > -- > James > ------- > http://macstrac.blogspot.com/ > > Open Source Integration > http://fusesource.com/ > > -- View this message in context: http://www.nabble.com/AMQ-%2B-Programmatic-Creation-of-Destinations-%2B-Registration-in-JNDI-tp24809685p24810651.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.