1 22 package org.jboss.ejb.plugins; 23 24 import org.jboss.ejb.EnterpriseContext; 25 import org.jboss.ejb.EntityEnterpriseContext; 26 27 36 public class EntityInstancePool 37 extends AbstractInstancePool 38 { 39 51 public void free(EnterpriseContext ctx) 52 { 53 if (ctx.getTransaction() != null) 55 { 56 if( log.isTraceEnabled() ) 57 log.trace("Can Not FREE Entity Context because a Transaction exists."); 58 return ; 59 } 60 61 super.free(ctx); 62 } 63 64 protected EnterpriseContext create(Object instance) 65 throws Exception  66 { 67 return new EntityEnterpriseContext(instance, getContainer()); 68 } 69 } 70 | Popular Tags |