Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help me with this objective

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
.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
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chris.
Thank you.
Axel
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic