Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

regarding Server.xml

 
yekkala krishna
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

I want to know the ROLE of server.xml file in SERVLETS point of view.
please try to suggest to my problem.
 
Akhilesh Trivedi
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi krishna!
I am sure this will serve your purpose.

http://www.indiawebdevelopers.com/technology/java/tomcat.asp
[ July 25, 2007: Message edited by: Akhilesh Trivedi ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The server.xml file does not have a role from the servlet's point of view.

It is the main configuration file for the Tomcat application server and is not part of the servlet specification.
It holds setting specific to Tomcat itself such as what ports to use, what connectors to use, the location and filename of any SSL certificates etc.

At one time it also held the <Context ..> entries for the individual applications (and still can) but those are usually configured in context fragment files.

The configuration file that does have a role from the servlet's point of view is the deployment descriptor (web.xml). To learn more about deployment descriptors, see the servlet specification (link in my signature).
 
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!