1 23 package com.sun.ejb.containers; 24 25 import java.lang.reflect.Method ; 26 import java.io.*; 27 import java.rmi.RemoteException ; 28 29 import javax.ejb.*; 30 import javax.transaction.*; 31 32 import javax.rmi.PortableRemoteObject ; 33 34 import java.util.*; 35 36 import com.sun.ejb.*; 37 import com.sun.ejb.portable.ObjrefEnumeration; 38 import com.sun.enterprise.*; 39 import com.sun.enterprise.deployment.*; 40 import com.sun.enterprise.util.LocalStringManagerImpl; 41 import com.sun.enterprise.log.Log; 42 import com.sun.enterprise.appverification.factory.AppVerification; 43 44 53 54 public class CommitCEntityContainer 55 extends EntityContainer 56 { 57 61 protected CommitCEntityContainer(EjbDescriptor desc, ClassLoader loader) 62 throws Exception 63 { 64 super(desc, loader); 65 } 66 67 protected EntityContextImpl getReadyEJB(Invocation inv) { 68 Object primaryKey = inv.ejbObject.getKey(); 69 return activateEJBFromPool(primaryKey, inv); 70 } 71 72 protected void createReadyStore(int cacheSize, int numberOfVictimsToSelect, 73 float loadFactor, long idleTimeout) 74 { 75 readyStore = null; 76 } 77 78 protected void createEJBObjectStores(int cacheSize, 79 int numberOfVictimsToSelect, long idleTimeout) throws Exception 80 { 81 super.defaultCacheEJBO = false; 82 super.createEJBObjectStores(cacheSize, numberOfVictimsToSelect, idleTimeout); 83 } 84 85 protected void addReadyEJB(EntityContextImpl context) { 87 passivateAndPoolEJB(context); 88 } 89 90 protected void destroyReadyStoreOnUndeploy() { 91 readyStore = null; 92 } 93 94 protected void removeContextFromReadyStore(Object primaryKey, 95 EntityContextImpl context) 96 { 97 } 99 100 } 101 102 | Popular Tags |