public class ConnectionFactoryProxy extends Object
XAConnectionFactory.| Constructor and Description |
|---|
ConnectionFactoryProxy(XAConnectionFactory xaConnectionFactory,
TransactionHelper transactionHelper) |
| Modifier and Type | Method and Description |
|---|---|
Connection |
createConnection()
Get XA connection from the provided factory and wrap it with
ConnectionProxy. |
Connection |
createConnection(String userName,
String password)
Get XA connection from the provided factory with credentials and wrap it with
ConnectionProxy. |
public ConnectionFactoryProxy(XAConnectionFactory xaConnectionFactory,
TransactionHelper transactionHelper)
xaConnectionFactory - factory to get XA connection instances, not null.transactionHelper - utility to make transaction resources registration easier.public Connection createConnection()
throws JMSException
ConnectionProxy.ConnectionProxy.JMSException - if failure occurred creating XA connection.public Connection createConnection(String userName, String password) throws JMSException
ConnectionProxy.userName - password - ConnectionProxy.JMSException - if failure occurred creating XA connection.Copyright © 2019 JBoss by Red Hat. All rights reserved.