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