servlet instance

A

Asit Dhal

Who creates Servlet Instance ??

when it is created ??

Is there any chance of creation of multiple instance ??
 
A

Arved Sandstrom

Can you just explain about multiple instance creation ?

I'd recommend reading the Servlet specification, whichever version (e.g.
2.5 or 3.0) applies to your selected version of Java EE. There is a
section in that spec entitled "Number of Instances".

It has actually been the case as far back as I can remember
(Servlet<=2.2) that servlet containers create *one* instance of a
declared servlet per JVM (would be more than one in a distributed
situation with more than one cluster node).

It is possible to configure servlets in such a way that the container
could create multiple instances. Don't do this.

AHS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top