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 » Java segmentation flags

Post new topic  Reply to topic
 Java segmentation flags « View previous topic :: View next topic » 
Author Message
mathilda
PostPosted: Tue Jun 29, 2010 5:13 am    Post subject: Java segmentation flags Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Tue Jun 29, 2010 1:57 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Java segmentation flags
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.