Hi

> So it seems that Tomcat does not spawn a new servlet for a new request,
althought my web.xml file contains:
> <servlet>
>          <servlet-name>Navigation</servlet-name>
>          <servlet-class>Navigation</servlet-class>
>          <load-on-startup>5</load-on-startup>
> </servlet>

Load-on-startup lets you set initialization ORDER, not instance COUNT.

It is totally up to tomcat, how many instances of the servlet are created.
At least one is. Maybe more, maybe only one.
This might also change between versions.

Do not use "synchronized" doXXX methods. Use local variables.

Regards,
  Steffen


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to