Chris Emery wrote:
>
> Hello,
>
> When writing the Bean implementation file such as the AccountBean, how
> should one reference the services provided by the server/container. The
> container takes care of implementing the EJBObject and EJBHome
> interfaces, but I don't see how the bean which extends SessionBean or
> EntityBean can easily obtain references to the EJBContainer. Any
> thoughts on this are appreciated.
Through the EJBContext (SessionContext/EntityContext) object that is passed by
the container to setSesionContext/setEntityContext. You should save this
context in an instance variable for later reference.
________________________________________________________________________________
Evan Ireland Sybase EA Server Engineering [EMAIL PROTECTED]
Wellington - New Zealand +64 21 2121-107
===========================================================================
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".