Originally posted by leandro oliveira:
is it correct to say that I may have 2 instances of my path.of.my.ClassX??and that I can have no more than 2 instances of my path.of.my.ClassX??
Yes.
First instance (listner) will be available as soon as the servlet context is loaded in your server.
Second instance (servlet) availability depend on the <load-on-startup>
if (load-on-startup >= 0) ==> 2nd instance is available as soon on context is loaded, but after first instance is created.
if (load-on-startup < 0 )==> Availability of 2nd instance is container depended. (mostly request time)
You can have any number instances for your path.of.my.ClassX by defining servlet-class with unique servlet-name in deployment descriptor.
Thanks,
Moorthi
[ February 16, 2004: Message edited by: Moorthi Ramasamy ]