• Post Reply Bookmark Topic Watch Topic
  • New Topic

default and non-default servlet context

 
Rajkishore Pujari
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
whats the difference between them considering web application is distributable. I got a question on this in one of the mock exams. Can somebody please clarify it?


Thanks.
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is one default web application in the servlet container. In Tomcat under webapps the directory named ROOT refers to the default web application. The servlet context of this web application is know as the default servlet context.

Servlet specification guarantees that in a distributed environment each web application has one servlet context in each JVM except the default web application whose servlet context exists in only one JVM.
 
Manikandan Jayaraman
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you explain this with an illustration. Something like Contexts ctx1 and ctx2 ... Dis. Environments env1 and env2 ... kind of .... ?
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!