Create an InitialContext in the setXXXContext method of your beans. Do it
once, per bean instance and reuse it within that bean instance. In the case
of entity beans and stateful session beans, it is the responsiblity of the
container to ensure these survive passivation.
jim
> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Hed Bar-Nissan
> Sent: Sunday, February 27, 2000 12:02 PM
> To: [EMAIL PROTECTED]
> Subject: Proper use of initial context ?
>
>
> What would be the propper use of initial context objects ?
>
> 1. provide one for each stateless session bean ?
> 2. each time construct a new initial context object ?
> 3. maintain a pool of initial context objects ?
>
>
> hed.
>
> ==================================================================
> =========
> 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".