- All Known Implementing Classes:
- InboundEndpointWork, ServerSessionImpl
- public interface SessionAndProducer
Represents an object which has-a javax.jms.Session instance and
an optional, lazily created javax.jms.MessageProducer instance
which can them be used by a pooling based JMS provider for publishing
messages using the session used by the current thread.
- Version:
- $Revision: 1.1.1.1 $
|
Method Summary |
javax.jms.MessageProducer |
getMessageProducer()
Lazily creates a message producer that can be used to send messages using the
same JMS Session which is being used to dispatch messages which minimises the XA
overheard of consuming and producing or allows JMS transactions to be used for consuming
and producing messages. |
javax.jms.Session |
getSession()
Returns the current session being used to process a JMS message in the current thread. |
getSession
public javax.jms.Session getSession()
throws javax.jms.JMSException
- Returns the current session being used to process a JMS message in the current thread.
getMessageProducer
public javax.jms.MessageProducer getMessageProducer()
throws javax.jms.JMSException
- Lazily creates a message producer that can be used to send messages using the
same JMS Session which is being used to dispatch messages which minimises the XA
overheard of consuming and producing or allows JMS transactions to be used for consuming
and producing messages.