NO - the setEntityContext is called only once by the container (during bean instantiation) in the lifetime of the bean (refer to the bean life cycle figures in the spec). The container on its part internally updates the references the entity context holds, so that the right references are available in the activate method
----- Original Message ----- From: "MOHAN RADHAKRISHNAN" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 29, 2002 12:36 PM Subject: EJB Context > Hi, > I read somewhere that whenever the bean is activated it has to get a > context. Does that mean that the container gives it the current context by > calling setEntityContext() everytime it is activated? If so then one cannot > allot database resources in this method as all the EJB books advocate > because it will be called multiple times. Any comments? > bye, > Mohan > > =========================================================================== > 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".
