public class ConnectionProxy extends Object
XAConnection.| Constructor and Description |
|---|
ConnectionProxy(XAConnection xaConnection,
TransactionHelper transactionHelper) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Simply close the proxied connection if there is no active transaction.
|
ConnectionConsumer |
createConnectionConsumer(Destination destination,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages)
Delegate to
xaConnection |
ConnectionConsumer |
createDurableConnectionConsumer(Topic topic,
String subscriptionName,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages)
Delegate to
xaConnection. |
Session |
createSession(boolean transacted,
int acknowledgeMode)
Simply create a session with an XA connection if there is no active transaction.
|
String |
getClientID()
Delegate to
xaConnection |
ExceptionListener |
getExceptionListener()
Delegate to
xaConnection |
ConnectionMetaData |
getMetaData()
Delegate to
xaConnection |
void |
setClientID(String clientID) |
void |
setExceptionListener(ExceptionListener listener)
Delegate to
xaConnection |
void |
start()
Delegate to
xaConnection |
void |
stop()
Delegate to
xaConnection |
public ConnectionProxy(XAConnection xaConnection,
TransactionHelper transactionHelper)
xaConnection - XA connection which needs to be proxied.transactionHelper - utility to make transaction resources registration easier.public Session createSession(boolean transacted,
int acknowledgeMode)
throws JMSException
JMSExceptionSessionProxy,
Connection#createSession(boolean, int)public void close()
throws JMSException
ConnectionClosingSynchronization if active transaction exists.JMSException - if transaction service has failed (in unexpected way) to obtain transaction status,
or if synchronization registration, or connection closing has failed.public String getClientID() throws JMSException
xaConnectionJMSExceptionConnection#getClientID()public void setClientID(String clientID) throws JMSException
JMSExceptionConnection#setClientID(String)public ConnectionMetaData getMetaData()
throws JMSException
xaConnectionJMSExceptionConnection#getMetaData()public ExceptionListener getExceptionListener()
throws JMSException
xaConnectionJMSExceptionConnection#getExceptionListener()public void setExceptionListener(ExceptionListener listener)
throws JMSException
xaConnectionJMSExceptionConnection#setExceptionListener(ExceptionListener)public void start()
throws JMSException
xaConnectionJMSExceptionConnection#start()public void stop()
throws JMSException
xaConnectionJMSExceptionConnection#stop()public ConnectionConsumer createConnectionConsumer(Destination destination,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages)
throws JMSException
xaConnectionJMSExceptionConnection#createConnectionConsumer(Destination, String, ServerSessionPool, int)public ConnectionConsumer createDurableConnectionConsumer(Topic topic,
String subscriptionName,
String messageSelector,
ServerSessionPool sessionPool,
int maxMessages)
throws JMSException
xaConnection.JMSExceptionConnection#createDurableConnectionConsumer(Topic, String, String, ServerSessionPool, int)Copyright © 2019 JBoss by Red Hat. All rights reserved.