Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2005

Tip: Looking for answers? Try searching our database.

Read in Tomcat from server.xml

Thread view: 
Karel Suikers - 05 Apr 2005 19:57 GMT
Is there a way to read items from the server.xml in Tomcat. I want to
use server.xml to distinguish my development environment from my
production server.

Karel

Signature

--------------------------------------
karel.suikers@cashette.com
http://www.freewebs.com/karelsuikers/
--------------------------------------

Arnaud Berger - 06 Apr 2005 08:07 GMT
Hi,

What does "read" mean ?

Could you please be more precise.

Regards,

Arnaud

> Is there a way to read items from the server.xml in Tomcat. I want to
> use server.xml to distinguish my development environment from my
[quoted text clipped - 7 lines]
> http://www.freewebs.com/karelsuikers/
> --------------------------------------
Karel Suikers - 06 Apr 2005 13:09 GMT
Arnaud Berger schreef:

> What does "read" mean ?
It is possible to put parameters for a certain class in web.xml, that's
what I want to do with server.xml, but I don't know how to do that.

>>Is there a way to read items from the server.xml in Tomcat. I want to
>>use server.xml to distinguish my development environment from my
>>production server.
Signature

--------------------------------------
karel.suikers@cashette.com
http://www.freewebs.com/karelsuikers/
--------------------------------------

Arnaud Berger - 06 Apr 2005 15:29 GMT
What is possible , is to create a XML "Context" file for a webapp.
This file should have the same name as the webapp (plus ".xml" obviously) .

See admin.xml and manager.xml which are examples of this.
Your datasources can be also configured at this level.

Regards,

Arnaud

> Arnaud Berger schreef:
>
[quoted text clipped - 10 lines]
> http://www.freewebs.com/karelsuikers/
> --------------------------------------
Karel Suikers - 08 Apr 2005 08:23 GMT
Arnaud Berger schreef:
> What is possible , is to create a XML "Context" file for a webapp.
> This file should have the same name as the webapp (plus ".xml" obviously) .
>
> See admin.xml and manager.xml which are examples of this.
> Your datasources can be also configured at this level.

Thanks, this works.
Karel

Signature

--------------------------------------
karel.suikers@cashette.com
http://www.freewebs.com/karelsuikers/
--------------------------------------



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.