Version 2

    Session

     

    A Session is a single-threaded context for producing/consuming messages. It is a factory for MessageProducers, MessageConsumers and QueueBrowsers and it is responsible for holding state for producers, consumers and queue browsers.

     

    JMS Facade implementation of a Session is

    org.jboss.jms.client.JBossSession

    . The complete set of JMS interfaces implemented by this class are:

     

    • javax.jms.Session
    • javax.jms.XASession
    • javax.jms.QueueSession
    • javax.jms.XAQueueSession
    • javax.jms.TopicSession
    • javax.jms.XATopicSession

     

    Instances of this class are physically constructed by the Connection delegate (

    org.jboss.jms.delegate.ConnectionDelegate

    ).

    JBossSession delegates to a SessionDelegate instance. It is the delegate implementation that does the specific work of creating producers/consumers and maintaining state.

     

     

    Back to JMS Facade