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 API Support » Cobol - JMS format

Post new topic  Reply to topic
 Cobol - JMS format « View previous topic :: View next topic » 
Author Message
alfreson
PostPosted: Wed Jun 22, 2005 6:29 am    Post subject: Cobol - JMS format Reply with quote

Newbie

Joined: 22 Jun 2005
Posts: 2

Hi everybody!

From an AS400, and a Cobol program, we need to send an XML message on an MQ-Series queue. The problem is that the client application waits for a JMS-format! How can we parametrize the message with the API to send it on MQ with a JMS-format??? Via MQMD? Which parameter? Which constant?

Thank you very much for your help!

AL & Arnaud
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Jun 22, 2005 6:39 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You need to attach an MQRFH2 header.

Or configure the client application queue destination so that the Target Client type is "MQ", not "JMS".
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
EddieA
PostPosted: Wed Jun 22, 2005 6:56 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Quote:
The problem is that the client application waits for a JMS-format

Is the client app JMS. If so, it should work even if the message doesn't have an RFH2. Unless it's looking for something in the properties.

Even if it's not JMS, unless it needs a property set, it really should be written to look at the message Format to see what arrived.
Quote:
Or configure the client application queue destination so that the Target Client type is "MQ", not "JMS"

For GETing a message Jeff.

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
jefflowrey
PostPosted: Wed Jun 22, 2005 7:00 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

EddieA wrote:
Quote:
Or configure the client application queue destination so that the Target Client type is "MQ", not "JMS"

For GETing a message Jeff.


Yes.... MDBs use Queue Destinations to find out what queue to open for input, as do well behaved JMS applications that are *not* in a request/reply pattern.

I would expect this to be handled appropriately regardless, when creating new JMSMessage objects. But it's worth trying, innit?
_________________
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 API Support » Cobol - JMS format
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.