|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Java segmentation flags |
« View previous topic :: View next topic » |
Author |
Message
|
mathilda |
Posted: Tue Jun 29, 2010 5:13 am Post subject: Java segmentation flags |
|
|
 Novice
Joined: 16 May 2007 Posts: 16 Location: Sofia, Bulgaria
|
Hello,
i have some problem with segmentation and grouping when using Java.
In documentation about segmentation, grouping and logical order, i can't found nothing about message flags when using segmentation and grouping.
In other words - what exactly should be structured segmented messages?
I have lots of samples about grouping and segmentation, but:
- when i send grouped messages , they have sequence number - 1,2,3 and groupID - this is exactly as documented.
- when i send segmented message , all segments have sequence number 1 , offset started for 0 for first segment, and groupID - this is exactly as documented - this sample used PutMessageOption - MQPMO_LOGICAL_ORDER
When i send segments without MQPMO_LOGICAL_ORDER and set from application offset and sequence number - sequense are 1,2,3 for example.
My questions are:
Q1. when i send segment which flags, should be set :
MQConstants.MQMF_MSG_IN_GROUP | MQConstants.MQMF_SEGMENT | MQConstants.MQMF_SEGMENTATION_ALLOWED
or
MQConstants.MQMF_SEGMENT | MQConstants.MQMF_SEGMENTATION_ALLOWED
because documentation says , that when i use MQConstants.MQMF_SEGMENT, goupId will be set.
Q2. Is it mandatory received segment to have sequence number different form 1, if i have offset values that is correct - 0, 3956345 for example.
Q3. What should be originalLength of message segment:
each segment should be have original length of payload or length of each segment payload (for example if i send 3 segments with size 3MB each, originalLength of each must be 3145728)
Regrads _________________ On any given Sunday you're gonna win or you're gonna lose. The point is
- can you win or lose like a man? |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Jun 29, 2010 1:57 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
What happens to the messages when you let MQ do the segmentation for you on the Put? What do the messages look like in the destination queue?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|