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 » How to remove RFH2 Header from messages ?

Post new topic  Reply to topic
 How to remove RFH2 Header from messages ? « View previous topic :: View next topic » 
Author Message
sysmq
PostPosted: Tue Sep 26, 2006 1:19 am    Post subject: How to remove RFH2 Header from messages ? Reply with quote

Novice

Joined: 04 Jun 2006
Posts: 22

I have a Java Application using JMS to write messages to queue.
At the queue I'm getting messages with RFH2 Header.
Is there a way to configure the JNDI to remove the RFH2 Header and to put messages with MQSTR format ?
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Sep 26, 2006 1:24 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

I'm not a Java person, but do a search on TARGCLIENT. It's the property which controls if the RFH2 is added. One of the things you'll find is this:

http://www.mqseries.net/phpBB2/viewtopic.php?t=31426&highlight=targclient

I'll leave it to your researches & better Java people than me to figure out how exactly to use it...
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
sysmq
PostPosted: Tue Sep 26, 2006 1:28 am    Post subject: Reply with quote

Novice

Joined: 04 Jun 2006
Posts: 22

As far as i remember changing the TARGCLIENT to MQ removes the RFH2 Header, but will it set the format to MQSTR ?
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Sep 26, 2006 1:33 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Please see previous disclaimer re: my level of Java knowledge!

AFAIK the format of the message is set in Java by the application as it is in all other languages. If an RFH2 is added (TAGCLIENT=2??) the format of the message is changed to MQRFH2 and the original format is moved to the corresponding field in the RFH2, again as in other languages. So if you're setting MQSTR you should get MQSTR....

...one of these days I really must get to grips with Java! Still, a better Java person will be along in a minute. In the meantime, give it a try - see what you get on the queue!
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Sep 26, 2006 2:44 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

sysmq wrote:
As far as i remember changing the TARGCLIENT to MQ removes the RFH2 Header, but will it set the format to MQSTR ?

To set the format to MQSTR you MUST use a TextMessage.

Create it using session.createTextMessage().

Enjoy
_________________
MQ & Broker admin
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 » IBM MQ Java / JMS » How to remove RFH2 Header from messages ?
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.