|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jotm.jms.JSession
public class JSession
Implementation of the Session interface. It's a wrapper above 2 types of Sessions: - one outside transactions - one inside transactions.
| Field Summary | |
|---|---|
protected boolean |
closed
|
protected Transaction |
currtx
|
protected JConnection |
jconn
|
protected org.objectweb.util.monolog.api.Logger |
logger
|
protected Session |
sess
|
protected static TransactionManager |
tm
|
protected boolean |
txover
|
protected XAConnection |
xac
|
protected XAResource |
xares
|
protected XASession |
xasess
|
| Fields inherited from interface javax.jms.Session |
|---|
AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, DUPS_OK_ACKNOWLEDGE, SESSION_TRANSACTED |
| Constructor Summary | |
|---|---|
protected |
JSession(JConnection jconn,
org.objectweb.util.monolog.api.Logger logger)
Prepares the construction of a JSession. |
|
JSession(JConnection jconn,
XAConnection xac,
org.objectweb.util.monolog.api.Logger logger)
Constructor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected XAResource xares
protected boolean txover
protected Transaction currtx
protected boolean closed
protected JConnection jconn
protected static TransactionManager tm
protected XAConnection xac
protected Session sess
protected XASession xasess
protected org.objectweb.util.monolog.api.Logger logger
| Constructor Detail |
|---|
protected JSession(JConnection jconn,
org.objectweb.util.monolog.api.Logger logger)
jconn - the JConnection creating this Session
public JSession(JConnection jconn,
XAConnection xac,
org.objectweb.util.monolog.api.Logger logger)
jconn - the JConnection creating this Sessionxac - the associated XAConnection| Method Detail |
|---|
protected XAResource getXAResource()
protected Session getMOMSession()
throws JMSException
JMSException - could not get underlaying Sessionprotected void MOMSessionClose()
protected void PhysicalClose()
public void close()
throws JMSException
close in interface SessionJMSException
public void commit()
throws JMSException
commit in interface SessionJMSException
public QueueBrowser createBrowser(Queue queue)
throws JMSException
createBrowser in interface SessionJMSException
public QueueBrowser createBrowser(Queue queue,
String messageSelector)
throws JMSException
createBrowser in interface SessionJMSException
public BytesMessage createBytesMessage()
throws JMSException
createBytesMessage in interface SessionJMSException
public MessageConsumer createConsumer(Destination destination)
throws JMSException
createConsumer in interface SessionJMSException
public MessageConsumer createConsumer(Destination destination,
String messageSelector)
throws JMSException
createConsumer in interface SessionJMSException
public MessageConsumer createConsumer(Destination destination,
String messageSelector,
boolean NoLocal)
throws JMSException
createConsumer in interface SessionJMSException
public TopicSubscriber createDurableSubscriber(Topic topic,
String name)
throws JMSException
createDurableSubscriber in interface SessionJMSException
public TopicSubscriber createDurableSubscriber(Topic topic,
String name,
String messageSelector,
boolean noLocal)
throws JMSException
createDurableSubscriber in interface SessionJMSException
public MapMessage createMapMessage()
throws JMSException
createMapMessage in interface SessionJMSException
public Message createMessage()
throws JMSException
createMessage in interface SessionJMSException
public ObjectMessage createObjectMessage()
throws JMSException
createObjectMessage in interface SessionJMSException
public ObjectMessage createObjectMessage(Serializable object)
throws JMSException
createObjectMessage in interface SessionJMSException
public MessageProducer createProducer(Destination destination)
throws JMSException
createProducer in interface SessionJMSException
public Queue createQueue(String queueName)
throws JMSException
createQueue in interface SessionJMSException
public StreamMessage createStreamMessage()
throws JMSException
createStreamMessage in interface SessionJMSException
public TemporaryQueue createTemporaryQueue()
throws JMSException
createTemporaryQueue in interface SessionJMSException
public TemporaryTopic createTemporaryTopic()
throws JMSException
createTemporaryTopic in interface SessionJMSException
public TextMessage createTextMessage()
throws JMSException
createTextMessage in interface SessionJMSException
public TextMessage createTextMessage(String text)
throws JMSException
createTextMessage in interface SessionJMSException
public Topic createTopic(String topicName)
throws JMSException
createTopic in interface SessionJMSException
public MessageListener getMessageListener()
throws JMSException
getMessageListener in interface SessionJMSException
public boolean getTransacted()
throws JMSException
getTransacted in interface SessionJMSException
public int getAcknowledgeMode()
throws JMSException
getAcknowledgeMode in interface SessionJMSException
public void recover()
throws JMSException
recover in interface SessionJMSException
public void rollback()
throws JMSException
rollback in interface SessionJMSExceptionpublic void run()
run in interface Runnablerun in interface Session
public void setMessageListener(MessageListener listener)
throws JMSException
setMessageListener in interface SessionJMSException
public void unsubscribe(String name)
throws JMSException
unsubscribe in interface SessionJMSExceptionpublic void beforeCompletion()
beforeCompletion in interface Synchronizationpublic void afterCompletion(int status)
afterCompletion in interface Synchronization
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||