|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents an object which has-a Session
instance and
an optional, lazily created MessageProducer
instance
which can them be used by a pooling based JMS provider for publishing
messages using the session used by the current thread.
Method Summary | |
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. |
Session |
getSession()
Returns the current session being used to process a JMS message in the current thread. |
Method Detail |
public Session getSession() throws JMSException
JMSException
public MessageProducer getMessageProducer() throws JMSException
JMSException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |