Package jakarta.jms
Interface ServerSessionPool
-
public interface ServerSessionPoolAServerSessionPoolobject is an object implemented by an application server to provide a pool ofServerSessionobjects for processing the messages of aConnectionConsumer(optional).Its only method is
getServerSession. The Jakarta Messaging API does not architect how the pool is implemented. It could be a static pool ofServerSessionobjects, or it could use a sophisticated algorithm to dynamically createServerSessionobjects as needed.If the
ServerSessionPoolis out ofServerSessionobjects, thegetServerSessioncall may block. If aConnectionConsumeris blocked, it cannot deliver new messages until aServerSessionis eventually returned.- Since:
- JMS 1.0
- Version:
- Jakarta Messaging 2.0
- See Also:
ServerSession
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ServerSessiongetServerSession()Return a server session from the pool.
-
-
-
Method Detail
-
getServerSession
ServerSession getServerSession() throws JMSException
Return a server session from the pool.- Returns:
- a server session from the pool
- Throws:
JMSException- if an application server fails to return aServerSessionout of its server session pool.
-
-