Increasing maximum message length for a WebSphere Application Server V5 Embedded Messaging queue
 Technote (troubleshooting)
 
Problem(Abstract)
If an IBM® WebSphere® Application Server V5 application utilizing Embedded Messaging attempts to send a message larger than the default size of 4194304 bytes (4 megabytes) to a queue, the MQJMS2007 exception with Reason Code 2030 will be thrown:

MQJMS2007: failed to send message to MQ queue
at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:540)
at com.ibm.mq.jms.MQQueueSender.sendInternal(MQQueueSender.java:824)
at com.ibm.mq.jms.MQQueueSender.send(MQQueueSender.java:239)
at com.ibm.mq.jms.MQQueueSender.send(MQQueueSender.java:272)
...
---- Begin backtrace for Nested Throwables
com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2030
at com.ibm.mq.MQQueue.putMsg2(MQQueue.java:1444)
at com.ibm.mq.jms.MQQueueSender.sendInternal(MQQueueSender.java:804)
...
 
Cause
By default, a queue defined with WebSphere Application Server V5 Embedded Messaging only accepts messages smaller than 4 megabytes.
 
Resolving the problem
To resolve the problem, increase the maximum message length (MAXMSGL) property of the queue in the Embedded queue manager. The maximum possible value will be the MAXMSGL setting for the queue manager, which is 104857600 bytes for the Embedded queue manager.


Follow these steps to increase this value:
  1. Run the runmqsc command line tool: runmqsc WAS_nodename_servername, where nodename is your WebSphere node name and servername is your application server name, or jmsserver if the node has been federated to a cell.

  2. Issue the command: alter ql ('WQ_queuename') maxmsgl(x), where queuename is the name of the queue and x is the desired value (in bytes) for the MAXMSGL property.

For example:

runmqsc WAS_aixstagenode1_jmsserver
alter ql('WQ_IMACS_BATCH_CommissionQueue') maxmsgl(10000000)
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Java Message Service (JMS)
Operating system(s): Windows
Software version: 5.1.1.2
Software edition:
Reference #: 1315026
IBM Group: Software Group
Modified date: Aug 13, 2008