1 25 26 package org.objectweb.jonas.container; 27 28 import org.objectweb.jonas_ejb.container.JSessionFactory; 29 30 35 public class SessionBean extends EJB { 36 37 41 public SessionBean(String objectName, JSessionFactory factoryToManage) { 42 super(objectName, factoryToManage); 43 } 44 48 49 public int getSessionTimeOut() { 50 return ((JSessionFactory) ejbToManage).getTimeout(); 51 } 52 53 57 public void setSessionTimeOut(int timeOut) { 58 ((JSessionFactory) ejbToManage).setTimeout(timeOut); 59 } 60 } 61 | Popular Tags |