Author |
Message
|
serpota |
Posted: Wed Dec 24, 2008 4:51 pm Post subject: very large message to handle |
|
|
Voyager
Joined: 26 May 2006 Posts: 85
|
I have MQ version 6.0.2.5 on Windows installed, and I am using C API.
I know message size limit is 100 MB,
but sometimes my application needs to send a larger message.
What shall I do in application program ?
Thanks. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Dec 25, 2008 10:53 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
MQ supports segmentation and grouping of messages. |
|
Back to top |
|
 |
serpota |
Posted: Fri Dec 26, 2008 12:09 pm Post subject: |
|
|
Voyager
Joined: 26 May 2006 Posts: 85
|
Yes, Jeff - those are terms
I always find when reading about large messages.
But I dont understand when to use them.
I mean ... my code goes :
MQ_Connect(qmgr_name),
then MQ_Open(queue_name)
and then MQ_Put(very_large_massage)
Where must I specify "yes, I want message segmentation" ?
If it is a put() time, mq would be almost perfect to me ...
Have a nice Xmas ! |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Dec 26, 2008 4:56 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
serpota wrote: |
Yes, Jeff - those are terms
I always find when reading about large messages.
But I dont understand when to use them.
I mean ... my code goes :
MQ_Connect(qmgr_name),
then MQ_Open(queue_name)
and then MQ_Put(very_large_massage)
Where must I specify "yes, I want message segmentation" ?
If it is a put() time, mq would be almost perfect to me ...
Have a nice Xmas ! |
Look into the queue open option and the pmo (put message options)  _________________ MQ & Broker admin |
|
Back to top |
|
 |
exerk |
Posted: Sat Dec 27, 2008 1:24 pm Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
A cautionary note: If the messages are going to z/OS-based queue managers, you cannot use segmentation as that platform does not support it. _________________ 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: Tue Dec 30, 2008 3:25 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Segmentation and message groups are discussed at length in the WMQ Application Programming Ref. and WMQ Applicatoin Programming Guide manuals. _________________ 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 |
|
 |
serpota |
Posted: Wed Dec 31, 2008 4:08 am Post subject: |
|
|
Voyager
Joined: 26 May 2006 Posts: 85
|
OK, I have done my homework. Here is the resum :
Sender has to code:
... message.messageFlags = MQC.MQMF_SEGMENTATION_ALLOWED ; queue.put ( message, pmo ) ; ...
Receiver has to code :
... MQGetMessageOptions gmo = new MQGetMessageOptions() ; gmo.options = MQC.MQGMO_FAIL_IF_QUIESCING | MQC.MQGMO_COMPLETE_MSG ;
queueIN.get ( retrievemqmessage, gmo ) ; ...
Am I right, teachers ?
Thanks and nice Xmas to all of you. |
|
Back to top |
|
 |
pshan81 |
Posted: Wed Dec 31, 2008 5:38 am Post subject: |
|
|
Acolyte
Joined: 24 May 2005 Posts: 72
|
You can also specify MQGMO_ALL_SEGMENTS_AVAILABLE in the get message options |
|
Back to top |
|
 |
markt |
Posted: Wed Dec 31, 2008 6:32 am Post subject: |
|
|
 Knight
Joined: 14 May 2002 Posts: 508
|
Quote: |
Am I right, teachers ? |
Why don't you just try it? You'll soon find out. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Dec 31, 2008 7:10 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
serpota wrote: |
Am I right, teachers ? |
We're not teachers, we're advisors. It's a subtle but important difference.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
serpota |
Posted: Thu Jan 01, 2009 4:39 am Post subject: |
|
|
Voyager
Joined: 26 May 2006 Posts: 85
|
a) pshan - it will be used in step (b)
b) markt - it is a bright, even simple, idea - I'm doing it right now
c) vitor - but you always (99,999%) say "look into that book"
instead of saying "the parameter is MQNNN=33"
HNY 2U all ! |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Jan 01, 2009 5:16 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
serpota wrote: |
c) vitor - but you always (99,999%) say "look into that book"
instead of saying "the parameter is MQNNN=33"
HNY 2U all ! |
That's simple survival skills. So next time you'll look into the manuals and try to resolve before posting. Makes your questions way more focused and easier to answer.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Jan 01, 2009 7:08 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
There is this parable:
Give a man a fish, and he will eat today; teach a man to fish, and he will eat forever.
To which I add: hit a man with a fish, and you briefly get his attention. _________________ 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 |
|
 |
Vitor |
Posted: Thu Jan 01, 2009 8:40 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
bruce2359 wrote: |
To which I add: hit a man with a fish, and you briefly get his attention. |
Depends entirely on how hard you hit him, and where.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|