|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Segmented Messages with JMS |
« View previous topic :: View next topic » |
Author |
Message
|
mac1929 |
Posted: Tue Nov 19, 2002 5:48 am Post subject: Segmented Messages with JMS |
|
|
Novice
Joined: 15 Oct 2002 Posts: 10
|
We have to process a very large message (over 600MB) in MQ Series Integrator. For that purpose the message must be segmented, because neither MQI nor MQ can handle so big messages without segmentation.
The problem is that the application that creates this message is using JMS, and as far as I know, JMS does not support segmention by itself.
I wonder if IBM implementation of JMS makes segments automatically when a message is too big. Or maybe there is a way to force segmentation using JMS? |
|
Back to top |
|
 |
amigupta1978 |
Posted: Wed Nov 27, 2002 2:00 am Post subject: |
|
|
Centurion
Joined: 22 Jan 2002 Posts: 132 Location: India
|
Hi,
JMS doesnot support segmentation, not even IBM JMS.
Moreover message transport limit is much less in JMS. We faced some problems if our message was over 4 mb.
We in our case tried two diff ways.
1) Make our own object which wraps the JMS calls and uses the base MQ calls to do the stuff.
2) we tried to break the message in several different byte messages and then set the message Ids in some particular format to be able to reassemble the things at other side.
Hope this helps,
Also were u able to do the stuff directly using JMS. If yes pls give the solution to myself too since both the baove methods are not the most appropriate way to get things done.
Thanks and Regards,
Amit _________________ IBM certified MQseries Specialist
IBM certified WMQI Specialist |
|
Back to top |
|
 |
kingdon |
Posted: Wed Nov 27, 2002 8:08 am Post subject: |
|
|
Acolyte
Joined: 14 Jan 2002 Posts: 63 Location: UK
|
MQJMS is able to send large messages, subject to the same restrictions as other MQSeries APIs. These include maximum message size settings for the queue manager and queue, and the channel if using a client connection. These default to 4MBytes, reflecting some of the performance characteristics of the product. For most platforms these limits can be raised to 100Mbytes, but sending individual messages of that size can be unwieldy. Note that if you send persistent messages you also need to worry about the amount of log space available, otherwise you get RC 2102 resource errors. You will also need to increase the JVM max heapsize setting to use big messages. I just did a quick test with a 90MB message, so I can confirm it does work.
Going back to the original question, Amit is correct that MQJMS doesn't support segmentation, so if you really need to move this 600MB object through JMS you will have to handle breaking it up in the application code. MQJMS does support message groups which may be useful for this purpose.
Regards,
James. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|