ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » MQRC 2030 / IBM MQ JMS / Message size > 1MB ??

Post new topic  Reply to topic
 MQRC 2030 / IBM MQ JMS / Message size > 1MB ?? « View previous topic :: View next topic » 
Author Message
xprezons
PostPosted: Sun Jul 24, 2005 9:39 am    Post subject: MQRC 2030 / IBM MQ JMS / Message size > 1MB ?? Reply with quote

Novice

Joined: 02 Sep 2004
Posts: 16
Location: UK

Hi,

I have developed a Java Application (using IBM MQJMS) that is putting a binary message onto a remote queue. I am getting this error for messages over 1MB in size. Have done a successful put of messages < 1MB.

Code:
Error Report:                                                 
MQJMS2007: failed to send message to MQ queue                 
             
com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2030


I have checked the MAXMSGL parameters of the QMgrs, Local Qs, XMit Qs, Channels, DLQs and they are all set at 4MB or even higher.

Is there a size property for the queues that defaults at 1MB and needs to be explicitly raised in the code?

Uses IBM MQJMS API
Code:

      // Create JMS Queue Connection Factory
      com.ibm.mq.jms.MQQueueConnectionFactory qcfFactory;
      qcfFactory = new MQQueueConnectionFactory();
     
      qcfFactory.setTransportType(ConfigurationManager.getTransporttype());
      qcfFactory.setHostName(ConfigurationManager.getHostname());
      qcfFactory.setQueueManager(ConfigurationManager.getQManager());

      /* If the transport type specified, is MQ Client transport, we need
            the SVRCONN too
       */
      if (ConfigurationManager.getTransporttype() == JMSC.MQJMS_TP_CLIENT_MQ_TCPIP)
        qcfFactory.setChannel(ConfigurationManager.getChannel());

      qConnection = qcfFactory.createQueueConnection();
     
      qConnection.start();

      session = qConnection.createQueueSession(boTransacted, Session.AUTO_ACKNOWLEDGE);

      queue = session.createQueue(ConfigurationManager.getPutQName());

      QueueSender qsender = session.createSender(queue);
....
....
          qsender.send(mqMessage);


Would appreciate any hints.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
fjb_saper
PostPosted: Sun Jul 24, 2005 7:33 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Have you thought about your JVM heap size ?
Back to top
View user's profile Send private message Send e-mail
xprezons
PostPosted: Mon Jul 25, 2005 1:50 am    Post subject: Reply with quote

Novice

Joined: 02 Sep 2004
Posts: 16
Location: UK

Thanks for looking into this, fjb_saper.

I had the impression that 1 MB was too low a value to start playing with the JVM heap size, but now that you say, I shall try that too.

I couldn't put a message 1,060,040 bytes long but succeeded for one that was 1,032,766 bytes long (just below 1 Meg) !!

Also, the linked Exception that I got was
com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2030. If the JVM heap size was inadequate, I would expect the application to fail with a 'Out of memory error'

Update:

I was able to put the message successfully after raising the MAXMSGL on the queue. I found that while the message sat on the queue it was about 4 Meg in size (i.e. the Message on the queue was 4 times the size of the binary file that I loaded !!).

Is this what is expected? Am not sure. Any thoughts?
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » MQRC 2030 / IBM MQ JMS / Message size > 1MB ??
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.