• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in servlet context & distributed enviorment

 
Senthil Kumar
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a problem in understanding the following from the spec.

SRV.3.2

Servlets in a container that were not deployed as part of a Web application are implicitly part of a �default� Web application and have a default ServletContext.In a distributed container, the default ServletContext is non-distributable and must only exist in one JVM.

how could there be a servlet in the container as not a part of a web-application.

And one more doubt emerges in my mind while reading the above.
1.what does the distributed container means here.
As i have understood " A distributed application is the one which is deployed in two containers.So there would be two JVMs one per the container."

But the above point from the spec "In a distributed container" confuses me.

Please clarify this..

Thanks
 
cheenu Dev
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SRV.14.2.8
A �web application� is a collection of servlets and content installed under a specific subset of the server�s URL namespace such as /catalog and possibly installed via a .war file.

so a servlet outside the war file is not in a web application.
how could there be a servlet in the container as not a part of a web-application.

also from pg 329 in spec
web application, distributable: A web application that is written so that it can be deployed in a web container distributed across multiple Java virtual machines running on the same host or different hosts. The deployment descriptor for such an application uses the distributable
element.

[ September 02, 2006: Message edited by: cheenu Dev ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic