1 package org.bsf.remoting; 2 3 import org.bsf.commons.ejb.SessionAdapterBean; 4 5 import javax.ejb.CreateException ; 6 7 28 public class StatefulTestBean extends SessionAdapterBean { 29 30 private static int eJBCount = 0; 31 32 35 private String name = null; 36 37 private int callCount = 1; 38 39 40 public void ejbCreate() throws CreateException { 41 super.ejbCreate(); 42 name = "EJB"+ eJBCount++; 43 } 44 45 50 public String getEJBName(){ 51 return name; 52 } 53 54 59 public String call(){ 60 return "call " + callCount++ + " on "+ name; 61 } 62 63 64 } 65 | Popular Tags |