Read in Tomcat from server.xml

K

Karel Suikers

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
 
A

Arnaud Berger

Hi,

What does "read" mean ?

Could you please be more precise.

Regards,

Arnaud
 
K

Karel Suikers

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.
 
A

Arnaud Berger

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
 
K

Karel Suikers

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top