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 » Mainframe, CICS, TXSeries » Get Message - skipping Message Header

Post new topic  Reply to topic Goto page Previous  1, 2
 Get Message - skipping Message Header « View previous topic :: View next topic » 
Author Message
bower5932
PostPosted: Wed Mar 26, 2008 4:42 am    Post subject: Reply with quote

Jedi Knight

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

christian witschel wrote:
What is bufferPos += rfh->StrucLength; doing. What is StrucLength?
As far as I know the RFH2 header is not fixed in size as it can contain addtional custom values.


The length is variable and StrucLength is how big it is. This is skipping over the header.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Vitor
PostPosted: Wed Mar 26, 2008 4:44 am    Post subject: Reply with quote

Grand High Poobah

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

Don't reopen year old threads - start a new one and refer back if you feel it's relevant.

christian witschel wrote:
can someone hint me how to correctly skip rfh and rfh2 headers in java?


Why would you want to? Use JMS and handle them automatically.

christian witschel wrote:
What is bufferPos += rfh->StrucLength; doing. What is StrucLength?


It's a field in the RFH2. I don't know if it's exposed via Java (because I don't know Java that well) but see above re: JMS.

christian witschel wrote:

As far as I know the RFH2 header is not fixed in size as it can contain addtional custom values.


That's why it contains it's length. See the APR for details.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Mar 26, 2008 3:13 pm    Post subject: Reply with quote

Grand High Poobah

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

jefflowrey wrote:

If you are getting messages from a Java program that is using JMS - the simplest solution is to ask them to set the TargetClient on their configuration to MQ, rather than JMS.

No programming change!
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jsware
PostPosted: Tue Apr 15, 2008 11:43 pm    Post subject: Reply with quote

Chevalier

Joined: 17 May 2001
Posts: 455

christian witschel wrote:
What is bufferPos += rfh->StrucLength; doing. What is StrucLength?
As far as I know the RFH2 header is not fixed in size as it can contain addtional custom values.
StrucLength is a field in the header structure (see http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.csqzak.doc/js07150.htm). It tells you how long the whole header is. The += operator "a += b" is the same as "a = a + b" and I believe is available in Java too.
_________________
Regards
John
The pain of low quaility far outlasts the joy of low price.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » Mainframe, CICS, TXSeries » Get Message - skipping Message Header
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.