User: user57  
  Date: 01/07/20 19:04:57

  Modified:    src/main/org/jboss/jms/asf StdServerSessionPoolFactory.java
  Log:
   o reformated and mostly documented.
  
  Revision  Changes    Path
  1.4       +62 -19    
jboss/src/main/org/jboss/jms/asf/StdServerSessionPoolFactory.java
  
  Index: StdServerSessionPoolFactory.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/jms/asf/StdServerSessionPoolFactory.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- StdServerSessionPoolFactory.java  2001/03/02 14:59:30     1.3
  +++ StdServerSessionPoolFactory.java  2001/07/21 02:04:57     1.4
  @@ -17,34 +17,77 @@
    */
   package org.jboss.jms.asf;
   
  -import java.util.Hashtable;
  +import java.io.Serializable;
   
   import javax.jms.ServerSessionPool;
   import javax.jms.MessageListener;
   import javax.jms.Connection;
   import javax.jms.JMSException;
  +
   /**
    * StdServerSessionPoolFactory.java
    *
  - *
    * Created: Fri Dec 22 09:47:41 2000
    *
  - * @author Peter Antman
  - * @version
  + * @author <a href="mailto:[EMAIL PROTECTED]";>Peter Antman</a>.
  + * @version $Revision: 1.4 $
    */
  +public class StdServerSessionPoolFactory
  +   implements ServerSessionPoolFactory, Serializable
  +{
  +   /** The name of this factory. */
  +   private String name;
  +
  +   /**
  +    * Construct a <tt>StdServerSessionPoolFactory</tt>.
  +    */
  +   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;
  +   }
   
  -public class StdServerSessionPoolFactory implements ServerSessionPoolFactory, 
java.io.Serializable {
  -    private Hashtable pools = new Hashtable();
  -    
  -    private String name;
  -    public StdServerSessionPoolFactory() {
  -     
  -    }
  -    public void setName(String name){this.name = name;}
  -    public String getName(){return name;}
  -    
  -    public ServerSessionPool getServerSessionPool(Connection con, int maxSession, 
boolean isTransacted, int ack, MessageListener listener) throws JMSException {
  -         ServerSessionPool pool =  (ServerSessionPool)new StdServerSessionPool(con, 
 isTransacted, ack, listener,maxSession);
  -         return pool;
  -    }
  -} // StdServerSessionPoolFactory
  +   /**
  +    * Create a new <tt>ServerSessionPool</tt>.
  +    *
  +    * @param con
  +    * @param maxSession
  +    * @param isTransacted
  +    * @param ack
  +    * @param listener
  +    * @return                A new pool.
  +    *
  +    * @throws JMSException
  +    */
  +   public ServerSessionPool getServerSessionPool(Connection con,
  +                                                 int maxSession,
  +                                                 boolean isTransacted,
  +                                                 int ack,
  +                                                 MessageListener listener)
  +      throws JMSException
  +   {
  +      ServerSessionPool pool = (ServerSessionPool)
  +         new StdServerSessionPool(con,
  +                                  isTransacted,
  +                                  ack,
  +                                  listener,
  +                                  maxSession);
  +      return pool;
  +   }
  +}
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to