Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MQ_PUT fails with a 5MB message

Status
Not open for further replies.

wfmqadmin

MIS
Nov 17, 2003
1
US
I am trying to put a 5Mb message on a queue manager that is configured to have a MAXMSGL fo 10Mb, I have also set the channel and local queue to each have a maxmsgl to be 10Mb. The put is failing with the following error:
************
caught JMSException: javax.jms.JMSException: MQJMS2007: failed to send message to MQ queue
linked exception: com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2030
closing session
*************

Can anyone help or have any ideas as to why it is failing.

 
You might want to break the message up, instead of putting 5mb anyways. Because there is always a higher probability that even if MQ allows this kind of transfer, Tcp/ip may timeout after transmitting a few packets. Which would lead you to getting corrupted data at the other end. Hence its always better to either segment it yourself in your app, or let qmgr do it for you.



Cheers
KK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top