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 » XAException: client connection not XA enabled

Post new topic  Reply to topic
 XAException: client connection not XA enabled « View previous topic :: View next topic » 
Author Message
YT
PostPosted: Thu Feb 05, 2004 4:47 am    Post subject: XAException: client connection not XA enabled Reply with quote

Newbie

Joined: 14 Jul 2003
Posts: 6
Location: London

Hi,

I'm trying to implement XA transactionality for WMQ 5.3 Extended Transactional Client running in a WAS 4.x environment and am having a few problems:

The method that is failing is as follows:
public void openConnection() throws Exception
{

final String METHOD_NAME = "openConnection";

String logMessage = null;

LogHelper.methodEntry(PACKAGE_NAME, CLASS_NAME, METHOD_NAME);

try
{

// Open connection

qcon = qconFactory.createXAQueueConnection();

// Create queue session

qsession = qcon.createXAQueueSession();

// Create queue sender

qsender = qsession.getQueueSession().createSender(queue);


}

catch (Exception e)
{

logMessage = "An error occurred during opening of connection";

LogHelper.error(PACKAGE_NAME, CLASS_NAME, METHOD_NAME,logMessage, e);
e.printStackTrace(System.out);
throw new Exception(logMessage);

}

LogHelper.methodExit(PACKAGE_NAME, CLASS_NAME, METHOD_NAME);

}

and the specific failing Java statement appears to be:

// Create queue session

->> qsession = qcon.createXAQueueSession();

when I try to open a connection to the queue manager.

The failure is MQJMS1068 Failed to obtain XAResource.

Explanation: JMS failed to create an XA Queue resource due to an error.
User Response: See the linked XAException for more information.

The linked XAException returned is:

javax.transaction.xa.XAException: client connection not XA enabled

Any help on this would be greatly appreciated - Thanks!
_________________
Cheers!
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 » XAException: client connection not XA enabled
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.