• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Doubt in servlet context & distributed enviorment

 
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
 
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 ]
    Bookmark Topic Watch Topic
  • New Topic