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 » StrucLength ( MQRFH2 )

Post new topic  Reply to topic
 StrucLength ( MQRFH2 ) « View previous topic :: View next topic » 
Author Message
San
PostPosted: Wed Dec 31, 2003 1:54 am    Post subject: StrucLength ( MQRFH2 ) Reply with quote

Newbie

Joined: 31 Dec 2003
Posts: 4

Hi
I am using an IBM MQ JMS Client and a JMS application. I have to set StrucLength in MQRFH2 header in the Client and get the same in the application listening the messages. Can anybody tell me how it could be done.

Also in the client do I neet to change JMSC property.
MQQueueConnectionFactory factory = new MQQueueConnectionFactory();
factory.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP);


Thanks in Anticipation,
San
Back to top
View user's profile Send private message
bower5932
PostPosted: Wed Dec 31, 2003 8:56 am    Post subject: Reply with quote

Jedi Knight

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

If you are using JMS, then I would say that you don't even need to know that an RFH2 header exists. The manipulation of it is done by MQ (and by you if you have a usr folder). What are you doing that requires you to get its length with JMS?
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
San
PostPosted: Wed Dec 31, 2003 11:55 pm    Post subject: Reply with quote

Newbie

Joined: 31 Dec 2003
Posts: 4

The problem lies in the fact that my client which could be either JMS or MQ would send me a BytesMessage. The message would contain an XML and an image. The MQRFH2 header has fixed a portion and a variable portion. The fixed portion has fields like StrucID, StrucLength etc. The value of StrucLength could vary and I need to read the value of StrucLength.
Back to top
View user's profile Send private message
bower5932
PostPosted: Mon Jan 05, 2004 8:06 am    Post subject: Reply with quote

Jedi Knight

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

There is a code snippet:

http://www.mqseries.net/phpBB2/viewtopic.php?t=9911

that displays a RFH2. This could be used to get the length.
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 » StrucLength ( MQRFH2 )
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.