Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JMS headers in file on MQSeries?

Status
Not open for further replies.

daveupdike

Programmer
Jan 25, 2001
3
US
OK, we're trying to ferret out a problem and the previous post was not exactly the problem. What we have traced follows:

We use JMS as the interface to MQSeries. When we place a XML file on our queue a JMS Header gets included like as follows:
RFH ................MQSTR ........... <mcd><Msd>jms_text</Msd></mcd> ...<<jms><Dst>queue://TFOO2/TSG.FOO.FOO2.INPUTQ</Dst></jms> <?xml version=&quot;1.0&quot; ?>

You can see the beginning of the XML at the end of above. It continues...

When we read this back in using JMS we process it and everything is OK. But when our users, who don't want to use JMS, place XML on our queue it gets placed OK, but doing a JMS QueueReceiver.receive() we get a null returned.
Our users file just starts off
<?xml version=&quot;1.0&quot; ?> and continues. No JMS headers.

Has anyone ran into this before. I haven't read anything that says if you use JMS to receive information off the queue then you MUST use JMS to place it on the queue.

Any verification of the above?

Dave Updike
 
More information:

We noticed that when place data in the queue manager er end up with either a Format of MQSTR (if submiting text using IBM's a___put utility) or MQRFH2 (if submitting thru our JMS test app).

The users data that does get placed on the queue has a Format of all blanks which is NONE. But we're not sure why this would result in a JMS QueueReceive() being null.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top