Interface InboundContext

All Known Implementing Classes:
ServerSessionImpl

public interface InboundContext
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

    Modifier and Type
    Method
    Description
    jakarta.jms.MessageProducer
    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.
    jakarta.jms.Session
    Returns the current session being used to process a JMS message in the current thread.
  • Method Details

    • getSession

      jakarta.jms.Session getSession() throws jakarta.jms.JMSException
      Returns the current session being used to process a JMS message in the current thread.
      Throws:
      jakarta.jms.JMSException
    • getMessageProducer

      jakarta.jms.MessageProducer getMessageProducer() throws jakarta.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.
      Returns:
      the current message producer or a new one is lazily created, using a null destination so the destination must be specified on a send() method.
      Throws:
      jakarta.jms.JMSException