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 » Configuring MQ as an XA JMS resource

Post new topic  Reply to topic
 Configuring MQ as an XA JMS resource « View previous topic :: View next topic » 
Author Message
ptazbaz
PostPosted: Thu Apr 22, 2004 4:59 pm    Post subject: Configuring MQ as an XA JMS resource Reply with quote

Apprentice

Joined: 23 May 2002
Posts: 29

Hello,

I have a question. Is there some configuration required on MQ in order to make it an XA JMS resource? I am testing with some java code and have configured the XA connection factory using JMSadmin. I continually get this error message and think it is related to something not being configured on the MQ side.

javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'localhost:WAL_553422'
at com.ibm.mq.jms.services.ConfigEnvironment.newException(Ljava.lang.String;Ljava.lang.Object;)Ljavax.jms.JMSException;(ConfigEnvironment.java:546)
at com.ibm.mq.jms.MQConnection.createQM()Lcom.ibm.mq.MQQueueManager;(MQConnection.java:1450)
at com.ibm.mq.jms.MQConnection.createQMXA()Lcom.ibm.mq.MQQueueManager;(MQConnection.java:915)
at com.ibm.mq.jms.MQQueueConnection.<init>(Lcom.ibm.mq.jms.MQQueueConnectionFactory;Ljava.lang.String;Ljava.lang.String;)V(MQQueueConnection.java:118)
at com.ibm.mq.jms.MQQueueConnection.<init>(Lcom.ibm.mq.jms.MQQueueConnectionFactory;)V(MQQueueConnection.java:77)
at com.ibm.mq.jms.MQXAQueueConnection.<init>(Lcom.ibm.mq.jms.MQQueueConnectionFactory;)V(MQXAQueueConnection.java:46)
at com.ibm.mq.jms.MQXAQueueConnectionFactory.createXAQueueConnection()Ljavax.jms.XAQueueConnection;(MQXAQueueConnectionFactory.java:53)
at XAQueueSendJtc.init(Ljavax.naming.Context;Ljava.lang.String;)V(XAQueueSendJtc.java:56)
at XAQueueSendJtc.main([Ljava.lang.String;)V(XAQueueSendJtc.java:110)

This same question applies to creating topics as well. I have some sample Java code and created a MQTopicFactory using JmsAdmin and am getting an error message as well. I think I have to make some MQ settings in order to resolve both of these problems. Any input or confirmation is much appreciated. Thanks.

-Paul
Back to top
View user's profile Send private message
bower5932
PostPosted: Fri Apr 23, 2004 5:44 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Get the linked exception:
Code:

 } catch( JMSException je ) {                               
     System.out.println("JMS Exception: " + je);             
     // check for a linked exception                         
     Exception le = je.getLinkedException();                 
     if (le != null) {                                       
        System.out.println("Linked exception: " + le);       
     }                                                       
                                                             
  }                                                         

It will shed more light on what is happening.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Configuring MQ as an XA JMS resource
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.