Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.objectweb.joram.client.jms.Session
org.objectweb.joram.client.jms.XASession
javax.jms.XASession
interface.
An XA session actually extends the behaviour of a normal session by
providing an XA resource representing it to a Transaction Manager, so that
it is part of a distributed transaction. The XASession wraps what looks like
a "normal"Session object. This object takes care of producing and
consuming messages, the actual sendings and acknowledgement being managed
by this XA wrapper.
Field Summary | |
protected Session |
|
Fields inherited from class org.objectweb.joram.client.jms.Session | |
messageListener |
Constructor Summary | |
|
Method Summary | |
void |
|
void |
|
javax.jms.QueueBrowser |
|
javax.jms.QueueBrowser |
|
javax.jms.MessageConsumer |
|
javax.jms.MessageConsumer |
|
javax.jms.MessageConsumer |
|
javax.jms.TopicSubscriber |
|
javax.jms.TopicSubscriber |
|
javax.jms.MessageProducer |
|
javax.jms.Session |
|
boolean |
|
javax.transaction.xa.XAResource |
|
void |
|
void |
|
void |
|
String |
|
Methods inherited from class org.objectweb.joram.client.jms.Session | |
close , commit , createBrowser , createBrowser , createBytesMessage , createConsumer , createConsumer , createConsumer , createDurableSubscriber , createDurableSubscriber , createMapMessage , createMessage , createObjectMessage , createObjectMessage , createProducer , createQueue , createStreamMessage , createTemporaryQueue , createTemporaryTopic , createTextMessage , createTextMessage , createTopic , getAcknowledgeMode , getMessageListener , getTransacted , recover , rollback , run , setMessageListener , setTransacted , toString , unsubscribe |
public XASession(Connection cnx, Session sess, XAResourceMngr rm) throws JMSException
Constructs anXASession
. This constructor is called by subclasses.
- Parameters:
cnx
- The connection the session belongs to.sess
- The wrapped "regular" session.rm
- The resource manager.
public void close() throws JMSException
API method inherited from session, but intercepted here for adapting its behaviour to the XA context.
- Overrides:
- close in interface Session
public void commit() throws JMSException
API method inherited from session, but intercepted here for forbidding its use in the XA context (as defined by the API).
- Overrides:
- commit in interface Session
public javax.jms.QueueBrowser createBrowser(javax.jms.Queue queue) throws JMSException
Delegates the call to the wrapped JMS session.
- Overrides:
- createBrowser in interface Session
public javax.jms.QueueBrowser createBrowser(javax.jms.Queue queue, String selector) throws JMSException
Delegates the call to the wrapped JMS session.
- Overrides:
- createBrowser in interface Session
public javax.jms.MessageConsumer createConsumer(javax.jms.Destination dest) throws JMSException
Delegates the call to the wrapped JMS session.
- Overrides:
- createConsumer in interface Session
public javax.jms.MessageConsumer createConsumer(javax.jms.Destination dest, String selector) throws JMSException
Delegates the call to the wrapped JMS session.
- Overrides:
- createConsumer in interface Session
public javax.jms.MessageConsumer createConsumer(javax.jms.Destination dest, String selector, boolean noLocal) throws JMSException
Delegates the call to the wrapped JMS session.
- Overrides:
- createConsumer in interface Session
public javax.jms.TopicSubscriber createDurableSubscriber(javax.jms.Topic topic, String name) throws JMSException
Delegates the call to the wrapped JMS session.
- Overrides:
- createDurableSubscriber in interface Session
public javax.jms.TopicSubscriber createDurableSubscriber(javax.jms.Topic topic, String name, String selector, boolean noLocal) throws JMSException
Delegates the call to the wrapped JMS session.
- Overrides:
- createDurableSubscriber in interface Session
public javax.jms.MessageProducer createProducer(javax.jms.Destination dest) throws JMSException
Delegates the call to the wrapped JMS session.
- Overrides:
- createProducer in interface Session
public javax.jms.Session getSession() throws JMSException
API method.
public boolean getTransacted() throws JMSException
API method.
- Overrides:
- getTransacted in interface Session
public javax.transaction.xa.XAResource getXAResource()
API method.
public void recover() throws JMSException
API method inherited from session, but intercepted here for forbidding its use in the XA context (as defined by the API).
- Overrides:
- recover in interface Session
public void rollback() throws JMSException
API method inherited from session, but intercepted here for forbidding its use in the XA context (as defined by the API).
- Overrides:
- rollback in interface Session
public void run()
API method inherited from session, but intercepted here for adapting its behaviour to the XA context. This method processes asynchronous deliveries coming from a connection consumer by passing them to the wrapped session.
- Overrides:
- run in interface Session
public String toString()
Returns a String image of this session.
- Overrides:
- toString in interface Session