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 » MQGet preventing segmentation

Post new topic  Reply to topic
 MQGet preventing segmentation « View previous topic :: View next topic » 
Author Message
firelior
PostPosted: Sun Sep 02, 2012 8:59 am    Post subject: MQGet preventing segmentation Reply with quote

Apprentice

Joined: 31 May 2012
Posts: 28

Hi,

Is there any way to prevent segmentation when doing get request?

MQ splits the data that I send and then put it back together when the message is bigger then 4.5 KB.

How can I prevent that?
I tryed using
gmo.Segmentation = MQC.MQSEG_INHIBITED;
But it didn't work.

I am using .net mq client 7.1

thank you
Back to top
View user's profile Send private message
exerk
PostPosted: Sun Sep 02, 2012 11:56 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

What do you mean by "...MQ splits the data that I send..."? What is the maximum message size set for the queue and queue manager?
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Sun Sep 02, 2012 12:03 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9399
Location: US: west coast, almost. Otherwise, enroute.

exerk wrote:
What do you mean by "...MQ splits the data that I send..."? What is the maximum message size set for the queue and queue manager?

Is max message length specified on the channels?

Does the creating (put) app specify SEGMENTATION_ALLOWED?

Does the consuming (get) app specify COMPLETE_MSG?

What version of the GMO does your app use?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Sun Sep 02, 2012 12:15 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9399
Location: US: west coast, almost. Otherwise, enroute.

Moved to API support forum.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Sun Sep 02, 2012 5:25 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I'm a bit confused.

If MQ is transparently segmenting the messages, and then transparently reassembling them, such that your application only ever sees a single bitstream...

Why does it matter that the segmentation is occurring?
Back to top
View user's profile Send private message
firelior
PostPosted: Mon Sep 03, 2012 6:27 am    Post subject: Reply with quote

Apprentice

Joined: 31 May 2012
Posts: 28

How do I specify COMPLETE_MSG?

The max length is bigger then the message.
I only care about the get not the put..
Back to top
View user's profile Send private message
bruce2359
PostPosted: Mon Sep 03, 2012 6:31 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9399
Location: US: west coast, almost. Otherwise, enroute.

firelior wrote:
How do I specify COMPLETE_MSG?

COMPLETE_MSG is a get-message-option (GMO).

You could search google. You could look in the WMQ Application Programming Reference (manual). You could search the InfoCenter.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Sep 03, 2012 6:35 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Why do you want to PREVENT MQ from reassembling the message segments?

Why does that affect your business process in any manner at all?
Back to top
View user's profile Send private message
firelior
PostPosted: Mon Sep 03, 2012 6:51 am    Post subject: Reply with quote

Apprentice

Joined: 31 May 2012
Posts: 28

I found this:
http://www-01.ibm.com/support/docview.wss?uid=swg21408485
Back to top
View user's profile Send private message
zpat
PostPosted: Mon Sep 03, 2012 7:23 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

What size is your message buffer in the application?

What size did you tell MQ that the buffer was, on the MQGET call?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Sep 03, 2012 8:01 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

It is my experience that developers who are asking the kinds of questions you are asking, and trying to "solve" the kinds of "problems" you are discussing will in fact end up creating applications that are unmaintainable and unreliable.

If you wish to avoid creating an application that is unmaintainable and unreliable, please provide a more solid understanding of the business issue you are facing, and why you are trying to solve that business issue by PREVENTING MQ from reassembling a segmented message.

Why are you trying to PREVENT MQ from reassembling a segmented message?
Back to top
View user's profile Send private message
bruce2359
PostPosted: Mon Sep 03, 2012 9:22 am    Post subject: Re: MQGet preventing segmentation Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9399
Location: US: west coast, almost. Otherwise, enroute.

firelior wrote:
Hi,
Is there any way to prevent segmentation when doing get request?

Are you saying that the messages in the queue are segmented already, AND that you do NOT want them reassembled at MQGET time? This means that when your app does an MQGET, each MQGET will be passed only one segment of the complete message. Is this what you want to do?

Or, are you saying that the message in the queue is too big for your application buffer, AND that you DO NOT want the qmgr to segment the message for delivery to your app? If this is the case, you could specify accept-truncated-message in the GMO. In this case, message content bigger than your buffer will not be available to your app.

Please explain.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
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 » MQGet preventing segmentation
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.