org.apache.commons.messenger
Class DefaultServerSessionPool
java.lang.Object
org.apache.commons.messenger.DefaultServerSessionPool
- All Implemented Interfaces:
- javax.jms.ServerSessionPool
public class DefaultServerSessionPool
- extends Object
- implements javax.jms.ServerSessionPool
DefaultServerSessionPool
is a default implementation of
the JMS ServerSessionPool interface.
- Version:
- $Revision: 155459 $
- Author:
- James Strachan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultServerSessionPool
public DefaultServerSessionPool()
DefaultServerSessionPool
public DefaultServerSessionPool(SessionFactory sessionFactory,
javax.jms.MessageListener listener,
int numberOfServerSessions)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
getServerSession
public javax.jms.ServerSession getServerSession()
throws javax.jms.JMSException
- Return a server session from the pool.
- Specified by:
getServerSession
in interface javax.jms.ServerSessionPool
- Returns:
- a server session from the pool.
- Throws:
javax.jms.JMSException
- if a JMS error occurs.
putServerSession
public void putServerSession(javax.jms.ServerSession serverSession)
createServerSession
protected javax.jms.ServerSession createServerSession()
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.