Posted: Wed Nov 12, 2008 8:05 am Post subject: MQ JMS application: How to subscribe?
Centurion
Joined: 01 Mar 2006 Posts: 112
For non-JMS application, subscription can be registered on behalf of a subscriber application by send a RegisterSubscription message to the broker CONTROL queue. This subscrition message could specify the name of the queue into which published subscription would go, thus making is available to the subscriber application.
Do JMS pub/sub application work in a similar way? Do subscriptions have to be explicitly registered with the broker for subscribing application? Or is this done automatically and dynamically?
Posted: Wed Nov 12, 2008 1:48 pm Post subject: Re: MQ JMS application: How to subscribe?
Jedi
Joined: 09 Mar 2004 Posts: 2080
I suggest to check out the samples that are available and the JMS Specification and JMS API itself, which says what facilities are available in JMS.
The short answer to your questions is that there is no need manually to define subscriptions outside the lifetime of the app. The typical pattern is for the app to connect and create its own subscription using an identity it generates automatically.
There are durable and non-durable subscriptions which is a level of choice a little more than basic MQ publish/subscribe in V6. (The basic pub/sub facilities do not provide a non-durable subscription type and you have to take care of cancelling your own subscription if needs be).
MQ v7 has better support for publish/subscribe than MQ v6, so do check that out too.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum