RE: Using a configuration file without path for an application deployed on tomcat

2006-03-07 Thread STEINER Stephan
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

RE: Using a configuration file without path for an application deployed on tomcat

2006-03-06 Thread Duan, Nick
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