/* * JBoss, the OpenSource J2EE webOS * * Distributable under LGPL license. * See terms of license at gnu.org. */ package org.jboss.jms.asf; import javax.jms.Connection; import javax.jms.JMSException; import javax.jms.MessageListener; import javax.jms.ServerSessionPool; /** * Defines the model for creating ServerSessionPoolFactory objects.

* * Created: Wed Nov 29 15:55:21 2000 * * @author Peter Antman . * @author Hiram Chirino . * @version $Revision: 1.1.6.3 $ */ public interface ServerSessionPoolFactory { /** * Set the name of the factory. * * @param name The name of the factory. */ void setName(String name); /** * Get the name of the factory. * * @return The name of the factory. */ String getName(); /** * Create a new ServerSessionPool . * * @param con * @param maxSession * @param isTransacted * @param ack * @param listener * @param useLocalTX * @return A new pool. * @throws JMSException */ ServerSessionPool getServerSessionPool(Connection con, int maxSession, boolean isTransacted, int ack, boolean useLocalTX, MessageListener listener) throws JMSException; }