jQuery in Action, 3rd edition
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes help me with this objective Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "help me with this objective" Watch "help me with this objective" New topic

help me with this objective

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
.3 Distinguish the behavior of the following in a distributable:
Servlet context init. parameters
Servlet context listener
Servlet context attribute listener
Session attribute listeners
Chris Newman

Joined: Dec 08, 2001
Posts: 5
You're best off looking at the Servlet 2.3 specification but there's not too much in there regarding distributables. I picked out the following bits and pieces which may help:
in a distributable:
- Servlet context init parameters are local to the VM in which they are created. This prevents them from being a shared memory store in a distributed container.
- Attribute changes to ServletContext and HttpSession may occur concurrently. The container is not required to synchronize the resulting notifications to attribute listener classes (across a distributable).
- Distributed containers are not required to propogate either servlet context events or HttpSession events to other VMs. Listener class instances are scoped to one per deployment descriptor declaration per JVM.
I picked these out from page 28 (SRV.3.4.1) and page 72 (SRV.10.6) of the Servlet spec 2.3.. Also see page 52 (SRV.7.7.2) for more detail about distributed environments.
Axel Janssen
Ranch Hand

Joined: Jan 08, 2001
Posts: 2164
Thank you.
I agree. Here's the link: http://aspose.com/file-tools
subject: help me with this objective
It's not a secret anymore!