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 » How to subscribe to a published Message

Post new topic  Reply to topic
 How to subscribe to a published Message « View previous topic :: View next topic » 
Author Message
motan
PostPosted: Sat Feb 21, 2004 11:29 am    Post subject: How to subscribe to a published Message Reply with quote

Newbie

Joined: 21 Feb 2004
Posts: 2

I am new at the this forum and to PUB/SUB model. Never used it. We have MQ version 5.2 on HP. A new project requires me to setup MQ to subscribe to a message published on a remote QM within our network and deliver this message to an application. This application can read messages from Queues. Currently we use a program to get messages of queues and to write the messages to file system.

What all I need - Patches, Support PACs?
I am guessing I would a new program to get these messages from the Queue (topic?) to deliver them to the application. Am I wrong or right?
And how do I go about doing the setup?

_________________
Thanks for your help
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Sat Feb 21, 2004 2:00 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The subscriber program itself is just a standard MQSeries applications, that gets messages from queues.

The only thing that needs to be done is that the queue the application is reading from needs to be subscribed to the topic in question. This is done using a subscription message, which is placed on the broker queue.

The subscription message contains an MQRFH2 header that specifies that the message is a subscription request, and the topic to be subscribed to. The queue to receive subscriptions is set in the ReplyToQueue of the MQMD.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
motan
PostPosted: Sat Feb 21, 2004 7:28 pm    Post subject: Reply with quote

Newbie

Joined: 21 Feb 2004
Posts: 2

Thanks Jeff.
So am I right to undersatnd that I do not need any updates, support pacs etc?
All I need is an application that can place a message ( with MQRFH Header stating that it is a subscription message, topic being subscribed and and the queue to which messages should be sent) on the broker. Any sample code for such application?
_________________
Thanks for your help
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Sun Feb 22, 2004 6:57 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

motan wrote:
Thanks Jeff.
So am I right to undersatnd that I do not need any updates, support pacs etc?
All I need is an application that can place a message ( with MQRFH Header stating that it is a subscription message, topic being subscribed and and the queue to which messages should be sent) on the broker.

Yes, that seems right.
motan wrote:
Any sample code for such application?

I think some has been posted here before, at least sample Java code to populate fields in an RFH2 header. Try the search button.
_________________
I am *not* the model of the modern major general.
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 » How to subscribe to a published Message
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.