aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Graf (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ARIES-1158) XAConnectionFactory not recoverable
Date Tue, 11 Feb 2014 09:39:19 GMT
Benjamin Graf created ARIES-1158:
------------------------------------

             Summary: XAConnectionFactory not recoverable
                 Key: ARIES-1158
                 URL: https://issues.apache.org/jira/browse/ARIES-1158
             Project: Aries
          Issue Type: Bug
          Components: Transaction
         Environment: Windows/UNIX
            Reporter: Benjamin Graf


GenericResourceManager needs XAConnectionFactory for recovery but gets only ConnectionFactory
which wraps the XAConnectionFactory provided.

XaPooledConnectionFactory:
public void setXaConnectionFactory(XAConnectionFactory xaConnectionFactory) {
    	this.xaConnectionFactory = xaConnectionFactory;
        setConnectionFactory(new ConnectionFactory() {
            public Connection createConnection() throws JMSException {
                return XaPooledConnectionFactory.this.xaConnectionFactory.createXAConnection();
            }
            public Connection createConnection(String userName, String password) throws JMSException
{
                return XaPooledConnectionFactory.this.xaConnectionFactory.createXAConnection(userName,
password);
            }
        });
    }



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message