Register / Login
Win a copy of
The Little Book of Impediments (e-book only)
this week in the
Agile and Other Processes
Web Component Certification (OCEJWCD)
doubt in the usage of distributable element
posted 11 years ago
Pls clarify the following...
IF the application in web.xml is not distributable
create only a single instance per declaration per JVM.
2. If the
implements SingleThreadModel the container may create multiple instance per declaration per JVM
If the application in web.xml is distributable
3. container may create only a single instance per declaration per JVM.( this means that the container may create mutiple instance per JVM)
4. If the servlet implements SingleThreadModel the container may create mutliple instance per declaration per JVM.
The only difference which i found is between the statement 1 and 3, where for statement 1 it is a must but for statement 3 it is optional.
For statement 2 and 4 , there is no difference even if the application is distributable or not.
Can anyone let me know whether my understanding is correct.
SCJP 1.4<br />SCWCD 1.4<br />SCBCD 1.3
Requests to Servlets
Wonder about one of the SCWCD whizlabs question?
Does it make any need to have static variables inside a Servlet
total servlet instance in distributable enviornment