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 Java / JMS » MQJMS2007 error on RAD

Post new topic  Reply to topic
 MQJMS2007 error on RAD « View previous topic :: View next topic » 
Author Message
kiranraj
PostPosted: Mon Aug 06, 2007 8:22 am    Post subject: MQJMS2007 error on RAD Reply with quote

Novice

Joined: 19 Sep 2005
Posts: 12

Hi,
I get the following error when I tried to put a JMS message on the MQ queue manager.
I am using RAD 6.0.1.1 and MQ 6.0 on another machine.

The code snippet:

String replyQueueConnFactoryName = "java:comp/env/jms/REPLY_REF";
String requestQueueConnFactoryName = "java:comp/env/jms/REQUEST_REF";
String qLocalName = "java:comp/env/jms/LOCAL_QUEUE_REF";
String qRemoteName = "java:comp/env/jms/REMOTE_QUEUE_REF";
javax.jms.QueueConnection qRequestConnection = null;
javax.jms.QueueConnection qReplyConnection = null;
javax.jms.QueueSession qRequestSession = null;
javax.jms.QueueSession qReplySession = null;
javax.jms.Queue qInput = null;
javax.jms.Queue qOutput = null;
javax.jms.QueueSender qSender = null;
javax.jms.QueueReceiver qReceiver = null;
javax.jms.QueueConnectionFactory qConnFactoryRequest = null;
javax.jms.QueueConnectionFactory qConnFactoryReply = null;

String rqst = "<REQ></REQ>";

try
{
javax.naming.InitialContext ctx = new InitialContext();

qConnFactoryRequest = (javax.jms.QueueConnectionFactory)ctx.lookup(requestQueueConnFactoryName);
qConnFactoryReply = (javax.jms.QueueConnectionFactory)ctx.lookup(replyQueueConnFactoryName);

qInput = (javax.jms.Queue)ctx.lookup(qRemoteName);
qOutput = (javax.jms.Queue)ctx.lookup(qLocalName);

qRequestConnection = qConnFactoryRequest.createQueueConnection();
qReplyConnection = qConnFactoryReply.createQueueConnection();
qRequestConnection.start();
qReplyConnection.start();

qRequestSession = qRequestConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
qReplySession = qReplyConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
qSender = qRequestSession.createSender(qInput);


Message msg = qRequestSession.createObjectMessage(rqst);


// REQUIRED field for JMS_IBM_MsgType to work
msg.setJMSReplyTo(qOutput);
qSender.send(msg);
System.out.println("Message Sent");

When the qSender.send(msg) line is run, the below exception occurs.


[8/6/07 21:43:10:132 IST] 0000003e ConnectionEve A J2CA0056I: The Connection Manager received a fatal connection error from the Resource Adaptor for resource JMS$REQUEST_QUEUE_CF$JMSManagedConnection@732441512. The exception which was received is javax.jms.JMSException: MQJMS2007: failed to send message to MQ queue
[8/6/07 21:43:10:132 IST] 0000003e ConnectionEve A J2CA0056I: The Connection Manager received a fatal connection error from the Resource Adaptor for resource jms/REQUEST. The exception which was received is javax.jms.JMSException: MQJMS2007: failed to send message to MQ queue
[8/6/07 21:43:10:147 IST] 0000003e WASLogger E CLASSNAME METHODNAME an internal error has occurred. Please contact your system administrator. Detail: com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2019
_________________
Thanks.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Aug 06, 2007 4:28 pm    Post subject: Reply with quote

Grand High Poobah

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

Look up in the (programmer's manual) the reason code 2019...

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
kiranraj
PostPosted: Mon Aug 06, 2007 9:55 pm    Post subject: Reply with quote

Novice

Joined: 19 Sep 2005
Posts: 12

The same code works in WSAD Any idea if RAD needs upgrade or anything?
_________________
Thanks.
Back to top
View user's profile Send private message
kiranraj
PostPosted: Thu Aug 16, 2007 11:15 pm    Post subject: MQJMS2007 on RAD 6.0.1.1 with MQ 6.0 Reply with quote

Novice

Joined: 19 Sep 2005
Posts: 12

After upgrading the WTE 6.0.0.0(that comes inbuilt with RAD) to WTE 6.0.2.13, the same code started working.
So , upgrade the WTE to 6.0.2.13 to let the MQ JMS calls work in RAD 6.0.1.1
-Cheers
_________________
Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQJMS2007 error on RAD
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.