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 » General Discussion » Pub/Sub from cobol program

Post new topic  Reply to topic
 Pub/Sub from cobol program « View previous topic :: View next topic » 
Author Message
shash
PostPosted: Sun Dec 12, 2004 12:22 pm    Post subject: Pub/Sub from cobol program Reply with quote

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
View user's profile Send private message Send e-mail
EddieA
PostPosted: Sun Dec 12, 2004 12:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
csmith28
PostPosted: Sun Dec 12, 2004 4:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
kirani
PostPosted: Sun Dec 12, 2004 4:20 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
csmith28
PostPosted: Sun Dec 12, 2004 5:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
kirani
PostPosted: Sun Dec 12, 2004 9:02 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
bower5932
PostPosted: Mon Dec 13, 2004 6:20 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
fjb_saper
PostPosted: Mon Dec 13, 2004 3:23 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
shash
PostPosted: Mon Dec 13, 2004 8:34 pm    Post subject: Reply with quote

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

MQSeries.net Forum Index » General Discussion » Pub/Sub from cobol program
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.