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 API Support » SendExit: Difference of subsequent segment from first one

Post new topic  Reply to topic
 SendExit: Difference of subsequent segment from first one « View previous topic :: View next topic » 
Author Message
sfari
PostPosted: Wed Aug 04, 2004 3:15 am    Post subject: SendExit: Difference of subsequent segment from first one Reply with quote

Centurion

Joined: 15 Apr 2003
Posts: 144

I made a Java SendExit which sets the userId of the current J2EE session into the messages MQMD. The SendExit does this when a call has been identified as MQPUT (Value of byte 10 == x'86').

How can i differentiate if the data of a call is a subsequent segment? Byte 10 still indicates an MQPUT then, but of course there is no MQMD anymore to be modified.

I noticed that there are 44 bytes in front of the MQMD. I assume that the answer can be found in that part. Is there any documentation about that part available?

Thanks for any help!
Silvano
Back to top
View user's profile Send private message
sfari
PostPosted: Wed Aug 04, 2004 10:37 pm    Post subject: Reply with quote

Centurion

Joined: 15 Apr 2003
Posts: 144

Looking at the data buffer I found out, that the 11th byte of each segment indicates if a segment is the first one or not. Is this always true?

On the first segment this byte has the value 0x10 and on the subsequent segments 0x00.

Is this an adequate way to make this segmentation check?

Bytes of first segment:
Code:
54 53 48 20 00 00 7f fe 01 86 10 00 ...


Bytes of subsequent segment:
Code:
54 53 48 20 00 00 7f fe 01 86 00 00 ...
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 API Support » SendExit: Difference of subsequent segment from first one
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.