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 » General IBM MQ Support » very large message to handle

Post new topic  Reply to topic
 very large message to handle « View previous topic :: View next topic » 
Author Message
serpota
PostPosted: Wed Dec 24, 2008 4:51 pm    Post subject: very large message to handle Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Thu Dec 25, 2008 10:53 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

MQ supports segmentation and grouping of messages.
Back to top
View user's profile Send private message
serpota
PostPosted: Fri Dec 26, 2008 12:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Fri Dec 26, 2008 4:56 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
exerk
PostPosted: Sat Dec 27, 2008 1:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Tue Dec 30, 2008 3:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
serpota
PostPosted: Wed Dec 31, 2008 4:08 am    Post subject: Reply with quote

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
View user's profile Send private message
pshan81
PostPosted: Wed Dec 31, 2008 5:38 am    Post subject: Reply with quote

Acolyte

Joined: 24 May 2005
Posts: 72

You can also specify MQGMO_ALL_SEGMENTS_AVAILABLE in the get message options
Back to top
View user's profile Send private message
markt
PostPosted: Wed Dec 31, 2008 6:32 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Wed Dec 31, 2008 7:10 am    Post subject: Reply with quote

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
View user's profile Send private message
serpota
PostPosted: Thu Jan 01, 2009 4:39 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Thu Jan 01, 2009 5:16 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
bruce2359
PostPosted: Thu Jan 01, 2009 7:08 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Thu Jan 01, 2009 8:40 am    Post subject: Reply with quote

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
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 » General IBM MQ Support » very large message to handle
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.