In many cases...
I use...
It is recommended....
(Please pick your disclaimer)

Create your initial context in the setSessionContext() or setEntityContext()
method within your bean. Do it only once, and store the reference in a
member variable of the class. Reuse it when necessary.

jim


----- Original Message -----
From: Hed Bar-Nissan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 27, 2000 12:01 PM
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".

Reply via email to