/* * JBoss, the OpenSource J2EE webOS * * Distributable under LGPL license. * See terms of license at gnu.org. */ package org.jboss.jms.asf; import java.io.Serializable; import javax.jms.Connection; import javax.jms.JMSException; import javax.jms.MessageListener; import javax.jms.ServerSessionPool; /** * An implementation of ServerSessionPoolFactory.

* * Created: Fri Dec 22 09:47:41 2000 * * @author Peter Antman . * @author Hiram Chirino . * @version $Revision: 1.3.6.3 $ */ public class StdServerSessionPoolFactory implements ServerSessionPoolFactory, Serializable { /** * The name of this factory. */ private String name; /** * Construct a StdServerSessionPoolFactory . */ public StdServerSessionPoolFactory() { super(); } /** * Set the name of the factory. * * @param name The name of the factory. */ public void setName(final String name) { this.name = name; } /** * Get the name of the factory. * * @return The name of the factory. */ public String getName() { return name; } /** * Create a new ServerSessionPool . * * @param con * @param maxSession * @param isTransacted * @param ack * @param listener * @param isContainerManaged Description of Parameter * @return A new pool. * @throws JMSException * @exception javax.jms.JMSException Description of Exception */ public ServerSessionPool getServerSessionPool(Connection con, int maxSession, boolean isTransacted, int ack, boolean useLocalTX, MessageListener listener) throws JMSException { ServerSessionPool pool = new StdServerSessionPool(con, isTransacted, ack, useLocalTX, listener, maxSession); return pool; } }