At 09:30 PM 08/07/2000 -0400, you wrote:
>Guys' suggest to do the JNDI env setup in the servlet's init() method is
>a good solution, since that method will only be called once during the
>lifetime of the servlet (i.e. creation time). One might also think it
>could be ok to get the InitialContext and store it in an instance
>variable of the servlet, although this is maybe not very thread safe.
I did this -- it really improved performance. Dramatically. (I suppose I
would see even better performance if I followed the Tomcat Integration
instructions, but I haven't been able to figure them out yet.)
I didn't store the InitialContext, only the Interest object which I created
from the InterestHome interface in the new init() method.
Take a look at the servlet new source code in step 7,
http://jboss.org/jboss7.html
or
http://jboss.org/jboss_win32_7.html
-- Ken Jenks, http://abiblion.com/
Tools for reading.
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]