1 6 package org.jfox.examples.ejb.stateless; 7 8 import javax.ejb.CreateException ; 9 import javax.ejb.EJBException ; 10 import javax.ejb.SessionBean ; 11 import javax.ejb.SessionContext ; 12 13 16 17 public class TestStatelessBean implements SessionBean { 18 private int count = 0; 19 20 public TestStatelessBean() { 21 } 22 23 public void ejbCreate() throws CreateException , EJBException { 24 25 } 26 27 public void setSessionContext(SessionContext sessionContext) throws EJBException { 28 } 29 30 public void ejbRemove() throws EJBException { 31 } 32 33 public void ejbActivate() throws EJBException { 34 } 35 36 public void ejbPassivate() throws EJBException { 37 } 38 39 public String getVoice() { 40 count++; 41 return "Hello,Stateless SessionBean!"; 42 } 43 44 47 public int getCount() { 48 return count; 49 } 50 } 51 | Popular Tags |