GeeCON Prague 2014*
The moose likes Tomcat and the fly likes Read Connection details from property on start up. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Read Connection details from property on start up." Watch "Read Connection details from property on start up." New topic
Author

Read Connection details from property on start up.

Ashwin Sridhar
Ranch Hand

Joined: Jul 09, 2011
Posts: 272

Hi,

Is it possible to read connection details from a property file and put in server.xml on the start up ?

Regards,
Ashwin


Ashwin Sridhar
SCJP | SCWCD | OCA
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16101
    
  21

DO you mean things like the port numbers Tomcat will be using?

I have fuzzy indications that MAYBE server.xml can handle variable substitution, but ultimately server.xml IS a properties file. When running multiple Tomcat instances, you would normally split the CATALINA_HOME and CATALINA_BASE directories apart and keep a distinct server.xml in the CATALINA_BASE of each defined Tomcat.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
GeeCON Prague 2014
 
subject: Read Connection details from property on start up.