What missing/wrong in the init method (as below)? The getAccountModel()
should return an AccountModel acct object.

Have anyone knows what should it be?

public class ModelManager extends ModelUpdateNotifier


private ServletContext context;
private HttpSession session;
private ShoppingClientController sccEjb = null;
private ShoppingCart cartEjb = null;
private Account acctEjb = null;

public void init(ServletContext context, HttpSession session)

this.session = session;
this.context = context;
getAccountModel();
}

public AccountModel getAccountModel()

AccountModel acct = (AccountModel)
session.getAttribute(WebKeys.AccountModelKey);
if (acct == null)

acct = new AccountWebImpl(this);
session.setAttribute
(WebKeys.AccountModelKey, acct);
}
return acct;
}

...

}

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to