Author |
Message
|
ein |
Posted: Thu Jul 09, 2009 10:18 pm Post subject: Huge messages in WMB and WMQ. |
|
|
Centurion
Joined: 14 Mar 2009 Posts: 108
|
Hello All,
I have a requirement to receive files from my partners.
Some times we may receive more than 4MB files. in our Queus.
The Queue default size is 4MB.
I heard that , we can do segmentation in Queue Manager level.
Can any one suggest me how we can do segmentation in QM level.
I am googling for this . I am not yet find the solution for segmentaion at QM level.
Can any one suggest me how we can do this. |
|
Back to top |
|
 |
zpat |
Posted: Thu Jul 09, 2009 10:38 pm Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Have you considered reading the IBM manuals? |
|
Back to top |
|
 |
ein |
Posted: Thu Jul 09, 2009 10:56 pm Post subject: |
|
|
Centurion
Joined: 14 Mar 2009 Posts: 108
|
Yes,
I have gone through some IBM MQ manuals.
I did n't find any thing like segmentation. If yoy have path Can you please send it to me. |
|
Back to top |
|
 |
gregop |
Posted: Thu Jul 09, 2009 11:04 pm Post subject: |
|
|
Voyager
Joined: 24 Nov 2006 Posts: 81
|
Why not extend the maximum message length for the queue(s) ? |
|
Back to top |
|
 |
zpat |
Posted: Fri Jul 10, 2009 12:12 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
How can you not find a major WMQ feature?
Look at the Websphere MQ programming guide and the Websphere MQ programming reference.
Look at the Java manuals if this is the language (which you helpfully don't state).
IBM don't leave this stuff undocumented, this is not open source freeware.
You can go to 100 MB on one message but you need to extend max msg size of channels, DLQ, xmit queue etc.
Can also cause a lot of memory buffer usage etc.
Otherwise use segmentation or grouped messages. |
|
Back to top |
|
 |
ein |
Posted: Fri Jul 10, 2009 12:24 am Post subject: |
|
|
Centurion
Joined: 14 Mar 2009 Posts: 108
|
Hello Zpat,
Thank you very much for valueable suggestions.
Can't we do that with out MQ programming. I mean some configuration changes at Queue Manager level.
under Queue manager we have lot of queues. We can increase the queue mxmlength. that's not good not solution for this scenario.
If it's not configurable at QM level , Then I will write a java program to split the messages.
Please suggest.  |
|
Back to top |
|
 |
WMBDEV1 |
Posted: Fri Jul 10, 2009 12:42 am Post subject: |
|
|
Sentinel
Joined: 05 Mar 2009 Posts: 888 Location: UK
|
Quote: |
I have gone through some IBM MQ manuals.
|
As part of your searches, what happened when you went to the infocenter (link at the top of the page) and searched for "segmentation"?
Did you even try this? If not then I suspect you have not really gone through the documentation as its in there clear for all to see. |
|
Back to top |
|
 |
zpat |
Posted: Fri Jul 10, 2009 12:46 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
There a QM setting for max message size up to 100 MB.
This value also has to be set on all the queues used (inc Xmit queue, DLQ) and all channels used for the message from point of origin to the final destination.
Understand how segmentation or grouping works for both MQPUT and MQGET before using it. Especially if one end of the link is not under your programming control.
RTM to start with, there is no simple switch to solve the problem instantly. |
|
Back to top |
|
 |
ein |
Posted: Fri Jul 10, 2009 2:17 am Post subject: |
|
|
Centurion
Joined: 14 Mar 2009 Posts: 108
|
Thanks Zpat,
I will propose this solution to my team, If they agreed then i ll do that Otherwise I ll will write java code for segmentation.
Thank you very much Zpat for your help.
FYI.
WMBDEV1....
I am looking for segmentation setting on QM level. IF you know then answer, with out searching , we can't come to you. |
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Jul 10, 2009 2:39 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
ein wrote: |
Hello Zpat,
Can't we do that with out MQ programming. I mean some configuration changes at Queue Manager level.
under Queue manager we have lot of queues. We can increase the queue mxmlength. that's not good not solution for this scenario.
If it's not configurable at QM level , Then I will write a java program to split the messages.
Please suggest.  |
If you have a script that creates all your queues you can change that and then apply the changes dynamically to the QM. This is a fairly basic WMQ Sys Admin task.
If you don't have one, there is a support pack that will create a script and a global change to the file and you after applying it, you are done.
Going down the segmentation route is IMHO, far more trouble. Indeed, I'd go as far as saying that it is more trouble than it is worth. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Jul 10, 2009 2:52 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ein wrote: |
I will propose this solution to my team, If they agreed then i ll do that Otherwise I ll will write java code for segmentation. |
Using Java code is IMHO a sledgehammer to crack a nut; a simple script to change max message length is much easier, less likely to go wrong and is the configuration change you originally asked for.
ein wrote: |
I am looking for segmentation setting on QM level. |
Segmentation is always something to be viewed with distaste, and is only appropriate where your design produces ludicrously large messages.
If you do have a lot to transmit, you're better (again IMHO) to have the application people bite the bullet and use grouping. Easier and more flexible. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|