Author |
Message
|
shash |
Posted: Sun Dec 12, 2004 12:22 pm Post subject: Pub/Sub from cobol program |
|
|
 Novice
Joined: 08 Dec 2004 Posts: 20
|
Hi,
We have a requirement where a Cobol program running on MVS wants to publish a message to a topic. The subscribers are JMS client. We are aware of the fact that support for pub/sub does not exist for MVS/ESA.
We have MQSeries running on mainfame and we have defined a Queue Manager there. We also have a MQ hub running on Windows NT.
I found an excellent post in this forum
http://www.mqseries.net/phpBB2/viewtopic.php?t=19007
which explains how this can be achieved by defining remote queues on MVS QM pointing to corresponding broker queues on the hub. Also we are clear about the channel definitions. As far as the configuration goes, we are comfortable.
The issue for us is, "how does the Cobol program specify that the message is intended for a topic?"
Also, if it can somehow specify the topic, and send the message to the remote queue on the MVS QM, will the message be redirected to the publisher queue on the NT hub? I guess thats the idea behind distributed queuing.
Will there be issues related to message mapping.
All the code I have seen so far indicates that the publisher is java based.
Is it posible for someone to help out with code examples?
Thanks
SHash |
|
Back to top |
|
 |
EddieA |
Posted: Sun Dec 12, 2004 12:31 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Quote: |
We are aware of the fact that support for pub/sub does not exist for MVS/ESA. |
The only thing "not available" is the broker itself. There is nothing stopping an MVS/ESA application using pub/sub.
Quote: |
We also have a MQ hub running on Windows NT |
That's where you can run the broker then.
Quote: |
how does the Cobol program specify that the message is intended for a topic |
It builds a message with a correctly formatted RFH2 header.
Quote: |
send the message to the remote queue on the MVS QM, will the message be redirected to the publisher queue on the NT hub |
If you've set up the distributed queuing correctly, then yes.
I'd start by reading either the PDF that comes with the SupportPac pub/sub, or the WMQI manual that descibes pub/sub.
Cheers. _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
csmith28 |
Posted: Sun Dec 12, 2004 4:01 pm Post subject: |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
Chant with me,
Pub/Sub forum
Pub/Sub forum
Pub/Sub forum...  _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
kirani |
Posted: Sun Dec 12, 2004 4:20 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
csmith28 wrote: |
Chant with me,
Pub/Sub forum
Pub/Sub forum
Pub/Sub forum...  |
Oh No ...  _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
csmith28 |
Posted: Sun Dec 12, 2004 5:44 pm Post subject: |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
kirani wrote: |
Oh No ...  |
In my humble opion, pub/sub is unique enough to warrant it's own category on this site. _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
kirani |
Posted: Sun Dec 12, 2004 9:02 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
so is AMI, WBIEB (Event Broker), .NET Interface, etc. The list will go on.
I think MQ General Support, MQ API Support, MQ Installation/Config forum takes care of most of the MQ realted questions. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
bower5932 |
Posted: Mon Dec 13, 2004 6:20 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
Well, I'd vote against a pub/sub forum. However, I reserve the right to change my opinion at a later time.
As far as this actual thread, I'd also suggest that you look at the soccer game samples that ship with MA0C. They are written in C, but they show you how to build the headers for publishing/subscribing. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Dec 13, 2004 3:23 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Answer to the original question:
You probably must send an RFH2 header in your message. This is where you will specify the missing information.
Enjoy  |
|
Back to top |
|
 |
shash |
Posted: Mon Dec 13, 2004 8:34 pm Post subject: |
|
|
 Novice
Joined: 08 Dec 2004 Posts: 20
|
Thanks Eddie, for correcting my misconception that support for pub/sub does not exist in MVS/ESA.
Quote: |
The only thing "not available" is the broker itself. There is nothing stopping an MVS/ESA application using pub/sub. |
And yes, we are running our broker on the windows NT hub.
After you, bower5932 and fjb_saper suggested, I started looking at how the C program provided with MA0C manipulates RFH2 header to publish messages. I will give it a try and let you know.
If someone has a working code to achieve the same and can post it here, I would be grateful. Otherwise I will post it when I am done.
Thanks to all. |
|
Back to top |
|
 |
|