1 25 26 package org.objectweb.jonas.container; 27 28 import org.objectweb.jonas_ejb.container.JStatelessFactory; 29 30 35 public class StatelessSessionBean extends SessionBean { 36 37 41 public StatelessSessionBean(String objectName, JStatelessFactory factoryToManage) { 42 super(objectName, factoryToManage); 43 } 44 45 49 public int getMinPoolSize() { 50 return ((JStatelessFactory)ejbToManage).getMinPoolSize(); 51 } 52 53 57 public int getMaxPoolSize() { 58 return ((JStatelessFactory)ejbToManage).getMaxCacheSize(); 59 } 60 61 65 public int getNbInstances() { 66 return ((JStatelessFactory)ejbToManage).getCacheSize(); 67 } 68 69 73 public void reducePoolToMinSize() { 74 ((JStatelessFactory)ejbToManage).reduceCache(); 75 } 76 } 77 | Popular Tags |