ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » MQ JMS application: How to subscribe?

Post new topic  Reply to topic
 MQ JMS application: How to subscribe? « View previous topic :: View next topic » 
Author Message
hilltops
PostPosted: Wed Nov 12, 2008 8:05 am    Post subject: MQ JMS application: How to subscribe? Reply with quote

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?
Back to top
View user's profile Send private message
mvic
PostPosted: Wed Nov 12, 2008 1:48 pm    Post subject: Re: MQ JMS application: How to subscribe? Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQ JMS application: How to subscribe?
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.