private SessionContext ctx;
/** callback methods*/
/*container calls to set associated session context */
public void setSessionContext(SessionContext c) {
ctx = c; }
/*container calls to initialize your session bean instance*/
public void ejbCreate(){}
/*container invokes this method before it ends life of session*/
public void ejbRemove() {}
/*container calls after it activates ejb*/
public void ejbActivate() {}
/*container calls before it passivates ejb*/
public void ejbPassivate() {}
/*business methods*/
public void addUser(String userName, String password) {
.......
}
public boolean validateUser(String userName, String password)
throws InvalidLoginException {
.......
}