On 09/04/2012 01:36 PM, Hamid.Shahid wrote:
Yes, I am using JMS. Can you please describe more about the selectors? and
How can they be used?

Any decent JMS tutorial or book will include a description of selectors, e.g. http://docs.oracle.com/javaee/6/tutorial/doc/bnceh.html#bncer.

Moreover, How can I subscribe to a queue existing on the Qpid server, by
creating a topic on the client end?

I'm sorry but the question doesn't make sense to me, so I'm not sure how to answer.

I'd recommend reading http://qpid.apache.org/books/0.18/Programming-In-Apache-Qpid/html/ however as well as a good introduction to JMS.

In JMS you have two types of 'Destination' from which you can receive messages: Queues and Topics. (Basically corresponding to point-to-point and pub-sub patterns respectively if that terminology is more familiar).

Qith the Qpid JMS client, you configure the Destinations using an address syntax described in the programming guide above. In its simplest form that can be the name of a queue or an 'exchange' (which is the AMQP concept used to model JMS Topics). These can be created on the server with administrative tools. However the address syntax support more advanced options for cases where on demand creation is needed.

For a topic subscription, the Qpid client will create a 'subscription queue' and 'bind' that to the exchange used for the topic. It will then subscribe to that subscription queue. However this is all done by the library for you. All you need to do is define the name of the topic (and optionally decide if it should do any filtering).

Hope this helps. As I say the question wasn't really clear to me, so if it didn't please feel free to ask again :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to