06 19:08
To: Tomcat Users List
Subject: RE: Using a configuration file without path for an application
deployed on tomcat
How about packaging the config.xml file within the jar file and import it to
your application via resource stream? See
Class.getResourceAsStream() or ClassLoader.getResourceAsS
How about packaging the config.xml file within the jar file and import
it to your application via resource stream? See
Class.getResourceAsStream() or ClassLoader.getResourceAsStream() for
more details.
The limitation of this approach is that the configuration parameters
have to be predefined prior