Author |
Message
|
firelior |
Posted: Sun Sep 02, 2012 8:59 am Post subject: MQGet preventing segmentation |
|
|
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 |
|
 |
exerk |
Posted: Sun Sep 02, 2012 11:56 am Post subject: |
|
|
 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 |
|
 |
bruce2359 |
Posted: Sun Sep 02, 2012 12:03 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 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 |
|
 |
bruce2359 |
Posted: Sun Sep 02, 2012 12:15 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 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 |
|
 |
mqjeff |
Posted: Sun Sep 02, 2012 5:25 pm Post subject: |
|
|
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 |
|
 |
firelior |
Posted: Mon Sep 03, 2012 6:27 am Post subject: |
|
|
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 |
|
 |
bruce2359 |
Posted: Mon Sep 03, 2012 6:31 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 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 |
|
 |
mqjeff |
Posted: Mon Sep 03, 2012 6:35 am Post subject: |
|
|
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 |
|
 |
firelior |
Posted: Mon Sep 03, 2012 6:51 am Post subject: |
|
|
Apprentice
Joined: 31 May 2012 Posts: 28
|
|
Back to top |
|
 |
zpat |
Posted: Mon Sep 03, 2012 7:23 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 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 |
|
 |
mqjeff |
Posted: Mon Sep 03, 2012 8:01 am Post subject: |
|
|
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 |
|
 |
bruce2359 |
Posted: Mon Sep 03, 2012 9:22 am Post subject: Re: MQGet preventing segmentation |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 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 |
|
 |
|