public class SessionProxy extends Object
XASession.| Constructor and Description |
|---|
SessionProxy(XASession xaSession,
TransactionHelper transactionHelper) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Simply close proxied session if there is no active transaction.
|
void |
commit() |
QueueBrowser |
createBrowser(Queue queue) |
QueueBrowser |
createBrowser(Queue queue,
String s) |
BytesMessage |
createBytesMessage() |
MessageConsumer |
createConsumer(Destination destination) |
MessageConsumer |
createConsumer(Destination destination,
String s) |
MessageConsumer |
createConsumer(Destination destination,
String s,
boolean b) |
TopicSubscriber |
createDurableSubscriber(Topic topic,
String s) |
TopicSubscriber |
createDurableSubscriber(Topic topic,
String s,
String s1,
boolean b) |
MapMessage |
createMapMessage() |
Message |
createMessage() |
ObjectMessage |
createObjectMessage() |
ObjectMessage |
createObjectMessage(Serializable serializable) |
MessageProducer |
createProducer(Destination destination) |
Queue |
createQueue(String s) |
StreamMessage |
createStreamMessage() |
TemporaryQueue |
createTemporaryQueue() |
TemporaryTopic |
createTemporaryTopic() |
TextMessage |
createTextMessage() |
TextMessage |
createTextMessage(String s) |
Topic |
createTopic(String s) |
int |
getAcknowledgeMode() |
MessageListener |
getMessageListener() |
boolean |
getTransacted() |
void |
recover() |
void |
rollback() |
void |
run() |
void |
setMessageListener(MessageListener messageListener) |
void |
unsubscribe(String s) |
public SessionProxy(XASession xaSession,
TransactionHelper transactionHelper)
xaSession - XA session that needs to be proxied.transactionHelper - utility to make transaction resources registration easier.public void close()
throws JMSException
SessionClosingSynchronization to close the proxied session.JMSExceptionpublic BytesMessage createBytesMessage()
throws JMSException
JMSExceptionpublic MapMessage createMapMessage()
throws JMSException
JMSExceptionpublic Message createMessage()
throws JMSException
JMSExceptionpublic ObjectMessage createObjectMessage()
throws JMSException
JMSExceptionpublic ObjectMessage createObjectMessage(Serializable serializable) throws JMSException
JMSExceptionpublic StreamMessage createStreamMessage()
throws JMSException
JMSExceptionpublic TextMessage createTextMessage()
throws JMSException
JMSExceptionpublic TextMessage createTextMessage(String s) throws JMSException
JMSExceptionpublic boolean getTransacted()
throws JMSException
JMSExceptionpublic int getAcknowledgeMode()
throws JMSException
JMSExceptionpublic void commit()
throws JMSException
JMSExceptionpublic void rollback()
throws JMSException
JMSExceptionpublic void recover()
throws JMSException
JMSExceptionpublic MessageListener getMessageListener()
throws JMSException
JMSExceptionpublic void setMessageListener(MessageListener messageListener)
throws JMSException
JMSExceptionpublic void run()
public MessageProducer createProducer(Destination destination)
throws JMSException
JMSExceptionpublic MessageConsumer createConsumer(Destination destination)
throws JMSException
JMSExceptionpublic MessageConsumer createConsumer(Destination destination,
String s)
throws JMSException
JMSExceptionpublic MessageConsumer createConsumer(Destination destination,
String s,
boolean b)
throws JMSException
JMSExceptionpublic Queue createQueue(String s) throws JMSException
JMSExceptionpublic Topic createTopic(String s) throws JMSException
JMSExceptionpublic TopicSubscriber createDurableSubscriber(Topic topic,
String s)
throws JMSException
JMSExceptionpublic TopicSubscriber createDurableSubscriber(Topic topic,
String s,
String s1,
boolean b)
throws JMSException
JMSExceptionpublic QueueBrowser createBrowser(Queue queue)
throws JMSException
JMSExceptionpublic QueueBrowser createBrowser(Queue queue,
String s)
throws JMSException
JMSExceptionpublic TemporaryQueue createTemporaryQueue()
throws JMSException
JMSExceptionpublic TemporaryTopic createTemporaryTopic()
throws JMSException
JMSExceptionpublic void unsubscribe(String s) throws JMSException
JMSExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.