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 » Removing MQRHF2 header from MQBase progam???

Post new topic  Reply to topic
 Removing MQRHF2 header from MQBase progam??? « View previous topic :: View next topic » 
Author Message
eswarnv
PostPosted: Tue Nov 26, 2002 8:30 pm    Post subject: Removing MQRHF2 header from MQBase progam??? Reply with quote

Voyager

Joined: 20 Dec 2001
Posts: 88

hi

I have a scenario like, I have MQBase program which is retrieving messages from aQueue to which JMS Client is placing messages. Then how I can delete MQRFH2 header from the message in my MQBase retreiving program.

Thanks in Advance,
Eswar........
Back to top
View user's profile Send private message
nimconsult
PostPosted: Tue Nov 26, 2002 11:34 pm    Post subject: Reply with quote

Master

Joined: 22 May 2002
Posts: 268
Location: NIMCONSULT - Belgium

I have never done it, but what I would do is:

Code:
// seek to the position of the StrucLength attribute
m.seek(8);
// retrieve the length of the MQRFH2 header
int l = m.readInt();
// seek to the end of the header
m.seek(l);
// now you can read the message buffer


It's not tested (I'm not sure of the offset and datatype of StrucLength) but at least you have got the skeleton.
_________________
Nicolas Maréchal
Senior Architect - Partner

NIMCONSULT Software Architecture Services (Belgium)
http://www.nimconsult.be
Back to top
View user's profile Send private message Send e-mail Visit poster's website
leongor
PostPosted: Wed Nov 27, 2002 2:41 am    Post subject: Reply with quote

Master

Joined: 13 May 2002
Posts: 264
Location: Israel

If you have access to configure JMS Client, then you can use targetClient=JMSC.MQJMS_CLIENT_NONJMS_MQ queue property in jndi.
Thus jms message will be send without jms header (RFH2).
_________________
Regards.
Leonid.

IBM Certified MQSeries Specialist.
Back to top
View user's profile Send private message
nimconsult
PostPosted: Wed Nov 27, 2002 7:07 am    Post subject: Reply with quote

Master

Joined: 22 May 2002
Posts: 268
Location: NIMCONSULT - Belgium

This is a good remark "leongor". I did not see the question that way
_________________
Nicolas Maréchal
Senior Architect - Partner

NIMCONSULT Software Architecture Services (Belgium)
http://www.nimconsult.be
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bower5932
PostPosted: Tue Dec 03, 2002 10:16 am    Post subject: Reply with quote

Jedi Knight

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

You can also get rid of the header by defining your q in JMSAdmin to indicate the target is MQ:

define q(myQ) qu(SYSTEM.DEFAULT.LOCAL.QUEUE) targclient(MQ)
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Removing MQRHF2 header from MQBase progam???
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.