Author |
Message
|
xprezons |
Posted: Tue Jul 05, 2005 2:30 pm Post subject: Binary MQ Message on z/OS from a JMS Application |
|
|
 Novice
Joined: 02 Sep 2004 Posts: 16 Location: UK
|
Scenario:
Existing external link through z/OS MQ QM. Internal JMS App needs to send a binary message.
Code: |
JMS App (BytesMessage) --> UNIX QM --> zOS QM --> Destination QM |
Question:
I do not want the zOS QM to do anything but forward the binary message from a local Q where it arrives, to a remote Q. Would the zOS (1.4) be a show-stopper while handling binary payloads? Sorry, my knowledge of the mainframe is next to nothing.
My feeling is ... this will work. Has anyone tried this before? Is the integrity of the binary content (say, an M$ Word doc) maintained through the transfer? Any MQ options to consider here? I know of MQFMT_NONE for one.
Appreciate your thoughts on this. |
|
Back to top |
|
 |
vennela |
Posted: Tue Jul 05, 2005 3:13 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Binary should work fine on z/OS |
|
Back to top |
|
 |
EddieA |
Posted: Tue Jul 05, 2005 3:14 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Quote: |
Would the zOS (1.4) be a show-stopper while handling binary payloads |
No.
Quote: |
Any MQ options to consider here |
No.
Always assuming that you are just using the z/OS QM as a "stepping stone" and using MQ multi-hop techniques to route through it, and not an application to GET/PUT the data.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
xprezons |
Posted: Tue Jul 05, 2005 3:38 pm Post subject: |
|
|
 Novice
Joined: 02 Sep 2004 Posts: 16 Location: UK
|
EddieA wrote: |
Always assuming that you are just using the z/OS QM as a "stepping stone"
|
Indeed, that's the point. This application is really small scale. Does not justify setting up direct queue links.
EddieA wrote: |
and using MQ multi-hop techniques to route through it, and not an application to GET/PUT the data.
|
Yes, I was unable to use the ISPF panel options to do a get of the binary message from one queue to put it onto another. Got a 'Message Truncated' Error.
Could you give me any pointers / links for a jumpstart into the MQ multi-hop techniques? Need to check this first thing in the morning.
Thanks Eddie, Vennela for your comments. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Jul 05, 2005 4:15 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
for your multihopping check the intercommunications manual:
start = qmgra
MF = qmgrb
destination = qmgrc
On qmgra define a qmgr alias for qmgrc pointing to qmgrb.
On qmgrb define a default communication/or a qmgr alias to qmgrc.
On qmgra put a message to a server app with a replyto destination pointing to a queue on qmgrc.
When the server app sends the reply it will put it on the xmitq specified in the alias for qmgrc. The message will go to qmgrb. Qmgrb will check the message and know it is not for himself but for qmgrc. As there is a default way it will route the message this way. Your message will land on qmgrc.
Bonus/problem: You will never get to browse the message in between because from the time it left qmgra until the moment it arrives on qmgrc it will only hit transmission queues....
Enjoy  |
|
Back to top |
|
 |
xprezons |
Posted: Sun Jul 10, 2005 2:22 pm Post subject: |
|
|
 Novice
Joined: 02 Sep 2004 Posts: 16 Location: UK
|
Thanks all for your tips.
Silly, this didn't occur to me before.
Got it working as below:
Code: |
UNIX Remote Q ---> zOS Alias Q ---> zOS RQ ---> UNIX Local |
Hop-skip-jump ... message arrives at the destination as expected  |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Jul 10, 2005 7:09 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You could as well have solved it this way:
Code: |
UNIX Rq -----------> zOS qmgr alias ---------------->UNIX local |
Enjoy  |
|
Back to top |
|
 |
|