The function of a server session pool in AFS

This topic summarizes the function of a server session pool.

Figure 1 summarizes the principles of ServerSessionPool and ServerSession functionality.

Figure 1. ServerSessionPool and ServerSession functionality
  1. The ConnectionConsumers get message references from the queue.
  2. Each ConnectionConsumer selects specific message references.
  3. The ConnectionConsumer buffer holds the selected message references.
  4. The ConnectionConsumer requests one or more ServerSessions from the ServerSessionPool.
  5. ServerSessions are allocated from the ServerSessionPool.
  6. The ConnectionConsumer assigns message references to the ServerSessions and starts the ServerSession threads running.
  7. Each ServerSession retrieves its referenced messages from the queue. It passes them to the onMessage method from the MessageListener that is associated with the JMS Session.
  8. After it completes its processing, the ServerSession is returned to the pool.

An application server normally supplies ServerSessionPool and ServerSession functionality.

Parent topic: IBM MQ classes for JMS Application Server Facilities