|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to subscribe to a published Message |
« View previous topic :: View next topic » |
Author |
Message
|
motan |
Posted: Sat Feb 21, 2004 11:29 am Post subject: How to subscribe to a published Message |
|
|
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 |
|
 |
jefflowrey |
Posted: Sat Feb 21, 2004 2:00 pm Post subject: |
|
|
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 |
|
 |
motan |
Posted: Sat Feb 21, 2004 7:28 pm Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Sun Feb 22, 2004 6:57 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|