Ye pooling is a very good idea I would say ..
You can maintain a context cache that would simply hold a collection of
contexts ..
1. You dont need to worry about creating a new InitialContext always
2. Closing of all the context at once when the application closes would be
easier
-Sandi
>From: Hed Bar-Nissan <[EMAIL PROTECTED]>
>Reply-To: A mailing list for Enterprise JavaBeans development
><[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Proper use of initial context ?
>Date: Sun, 27 Feb 2000 19:01:59 +0200
>
>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".
>
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
===========================================================================
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".