1 package ejb; 2 3 import javax.ejb.*; 4 5 10 public class AccountStateBean implements javax.ejb.SessionBean , ejb.AccountStateRemoteBusiness, ejb.AccountStateLocalBusiness { 11 private javax.ejb.SessionContext context; 12 private static final float amount = 250.0f; 13 14 20 public void setSessionContext(javax.ejb.SessionContext aContext) { 21 context = aContext; 22 } 23 24 27 public void ejbActivate() { 28 29 } 30 31 34 public void ejbPassivate() { 35 36 } 37 38 41 public void ejbRemove() { 42 43 } 44 46 50 public void ejbCreate() { 51 } 56 57 58 59 62 public String getStatus(java.lang.String user) { 63 return "In the account " + user + " is " + amount + " $"; 65 } 66 67 68 69 } 70 | Popular Tags |