Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

What's the default message buffer size in JMS for IBM MQ

843830Jul 21 2008
We are using JMS API to access an IBM MQ. From time to time, we received reply message with a reason code = 2080 (MQRC_TRUNCATED_MSG_FAILED). Some doc says this is because the buffer size specified is too small when trying to fetch a large size message from the queue.

The "receive" method in IBM-specific API takes in a "bufferSize" parameter. But in Sun JMS API, I found nowhere to set buffer size. And it seems the Sun JMS API will automatically increase the buffer size for the subsequent fetching request when receiving a MQRC_TRUNCATED_MSG_FAILED reply.

I believe Sun JMS API will set this buffer size when calling MQ-specific API in its implementation. My question is, what is the default value for this buffer size?

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 18 2008
Added on Jul 21 2008
0 comments
720 views