my dog learned polymorphism*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 15951
    
  19

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Read Connection details from property on start up.
 
Similar Threads
compiling packages
Property Placeholder in domain.xml on Glassfish server
Swing client w/ WebStart & J2ee
Struts datasource
Hot to know whether weblogic is running or not