[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tomcat-user
Subject:    Re: Specifying context details in web.xml
From:       QM <qm300 () brandxdev ! net>
Date:       2005-01-31 23:31:22
Message-ID: 20050131233122.GA2595 () strange ! dreamhost ! com
[Download RAW message or body]

On Mon, Jan 31, 2005 at 05:07:34PM -0000, micky none wrote:
: I need to ask you guys that is it possible that I can move the
: context details from my server.xml to web.xml.Like when i make a "war",i want
: that i should specify the database url,driver,username,password etc. details
: .Presently i have 2 contexts(one for alpha databse other for the live one)in
: the server.xml file in the server.But i need these details in my web.xml.

You can do this, but not necessarily using web.xml.

Search the Tomcat docs for "context.xml."  The short version is that you
store this in you WAR file.  It contains settings for that context.  

context.xml is essentially a <Context/> element inside its own file.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic