1 22 package org.jboss.ejb.plugins; 23 24 import org.jboss.ejb.EnterpriseContext; 25 import org.jboss.ejb.StatefulSessionEnterpriseContext; 26 27 34 public class StatefulSessionInstancePool 35 extends AbstractInstancePool 36 { 37 public synchronized void free(EnterpriseContext ctx) 38 { 39 discard(ctx); 40 } 41 42 protected EnterpriseContext create(Object instance) 43 throws Exception  44 { 45 return new StatefulSessionEnterpriseContext(instance, getContainer()); 47 } 48 } 49 50 | Popular Tags |