First things first - apologies to Greg Pierce for getting your name
wrong!  Fingers not listen to brain.

Next, Ken - I checked out your servlet code and you need to change the
init method declaration and add code as follows:
  
  public void init(ServletConfig config) throws ServletException {
        super.init(config);
        try { ....

The init method under JSDK2.0 requires that a ServletConfig argument be
passed to the super class init method.  This is not required in the 2.2
servlet spec.


Ken Jenks wrote:
> 
> 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]

-- 
Jeffrey & Nikole Bonevich
Maxmillian Bonevich
Ann Arbor, Michigan
[EMAIL PROTECTED]
http://www.bonevich.com


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to