I don't understand what server/container services you are talking about? -Muruga Chris Emery wrote: > Please excuse me, I should have poised the question as: The only method available to >a > class which implements either EntityBean or SessionBean has for accessing > serverservices is through the EJBContext.getEJBObject() method. Is this is correct, > then if every EJB Server vendor implements the EJBObject interface differently when > the EJB is deployed, then how can one write EJBs which are portable across servers? > Am I missing something here? > > Evan Ireland wrote: > > > 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". > > =========================================================================== > 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".
begin:vcard n:Chinnananchi;Muruganantham x-mozilla-html:FALSE adr:;;;;;; version:2.1 email;internet:[EMAIL PROTECTED] note:Sun Certified Java Programmer fn:Muruga end:vcard
