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 Java / JMS » Headers

Post new topic  Reply to topic
 Headers « View previous topic :: View next topic » 
Author Message
dwitherspoon
PostPosted: Tue Dec 09, 2003 5:54 am    Post subject: Headers Reply with quote

Acolyte

Joined: 09 Dec 2003
Posts: 59

I've got a JMS application that reads messages from a queue and processes them. They are deposited in the queue by a COBOL application a thousand miles away. Occasionally, the COBOL app has done something to a message that causes my JMS app to get a MalformedMessageException, with the details saying that the RFH2 header is bad.

I've got on of these things on the queue now, and I want to make some copies of it so that I can write some code to get the thing out of the way since JMS cannot even read it to receive it off the queue. So I wrote some non-JMS code to browse the message, and then put it to another queue.

Problem is, when I read that copy with my JMS app, I don't get the MalformedMessageException any longer. How is it that browsing a message and copying it to another queue fixes it?

Any ideas? I'm stumped...
_________________
Good...Fast...Cheap. Choose any two.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Dec 09, 2003 6:59 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Maybe your non-JMS code is doing data conversion that is "fixing" the issue with the RFH2 header.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
bower5932
PostPosted: Tue Dec 09, 2003 7:02 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

I'd also suggest that you look the message over with the amqsbcg program. It might be interesting to see what a 'regular MQ' program sees in the message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
dwitherspoon
PostPosted: Tue Dec 09, 2003 9:53 am    Post subject: Reply with quote

Acolyte

Joined: 09 Dec 2003
Posts: 59

You know what, I was shooting myself in the foot! I forgot that my JMS app is using a selector, so the message I thought I was copying to another queue was not the one with the bad RFH2 header after all.

D'oh! Thanks for the suggestions though!
_________________
Good...Fast...Cheap. Choose any two.
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 Java / JMS » Headers
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.