I'd actually stay away from using any non standard JMS methods. The new addressing syntax provides an easy way to use AMQP functionality while sticking to the pure JMS methods. Infact it exposes more protocol features than any non standard method in AMQSession.java
The addressing syntax will work for both AMQP 0-10 and AMQP 1.0, so there is a smooth transition. In the future we may have a Java messaging API that is similar to the new C++ and Python API. And then build our JMS layer as a thin layer on top of it. Rajith On Mon, May 17, 2010 at 1:13 PM, Martin Ritchie <[email protected]> wrote: >>>> > Emmanuel, > If you are looking to perform the bind/unbind to an existing queue then > there is a bindQueue method on AMQSession however I was just looking at this > and noticed there is no unbind. A simple thing to expose, but without a > clear approach on exposing AMQP functionality in the java client it may > subject to change. > > Hope that helps, > > Martin > > -- > Martin > > Sent from my iPhone > > On 17 May 2010, at 15:54, Rajith Attapattu <[email protected]> wrote: > >> You could use session.createTopic(<address-string>) or >> session.createQueue(<address-string>) and pass in the above string. >> Let me know if you have any further questions or if you run into any >> issues/bugs. >> >> Regards, >> >> Rajith >> >> On Mon, May 17, 2010 at 10:25 AM, Emmanuel Bourg <[email protected]> >> wrote: >>> >>> Thank you Rajith, I wasn't aware of this declarative form. >>> >>> Is there a way to do the same thing programmatically? In my use case the >>> topics are bound/unbound dynamically over the lifetime of the >>> application. >>> That means I can't declare them statically in a properties file when the >>> connection to the server is initialized. >>> >>> Emmanuel Bourg >>> >>> >>> Le 17/05/2010 15:52, Rajith Attapattu a écrit : >>>> >>>> Hi Emmanuel, >>>> >>>> It can be done easily using the new addressing format. >>>> >>>> For example you could use the following in the jndi.properties file. >>>> >>>> destination.myTopic = ""ADDR:amq.topic/topic1; { create: always, node: >>>> { x-bindings: [ {exchange : 'amq.topic', key : 'topic2'}, {exchange : >>>> 'amq.topic', key : 'topic3'}, {exchange : 'amq.topic', key : 'topic4'} >>>> ] } } >>>> >>>> For more information on the addressing format, refer the following, >>>> http://people.apache.org/~jonathan/Programming-In-Apache-Qpid.html >>>> >>>> The above link is part of the svn maintained docs that will be part of >>>> the new website. >>>> >>>> Regards, >>>> >>>> Rajith >>> >>> --------------------------------------------------------------------- >>> Apache Qpid - AMQP Messaging Implementation >>> Project: http://qpid.apache.org >>> Use/Interact: mailto:[email protected] >>> >>> >> >> >> >> -- >> Regards, >> >> Rajith Attapattu >> Red Hat >> http://rajith.2rlabs.com/ >> >> --------------------------------------------------------------------- >> Apache Qpid - AMQP Messaging Implementation >> Project: http://qpid.apache.org >> Use/Interact: mailto:[email protected] >> > > --------------------------------------------------------------------- > Apache Qpid - AMQP Messaging Implementation > Project: http://qpid.apache.org > Use/Interact: mailto:[email protected] > > -- Regards, Rajith Attapattu Red Hat http://rajith.2rlabs.com/ --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:[email protected]
