Alex,
You can use the
Class.getResource(<file>) method to lookup a resource file. This
will use the classpath to search for the file.
Example:
String
database = "mydatabase";
String
databaseFile = "/com/opendemand/jdo/database.xml";
JDO jdo
= new JDO();
jdo.setConfiguration( this.getClass().getResource( databaseFile ).toString() ); jdo.setDatabaseName(database); Steve
|
- [castor-dev] mapping file has to be in curr working direc... Bates, Alex
- Re: [castor-dev] mapping file has to be in curr work... Stephen Ince
- Re: [castor-dev] mapping file has to be in curr ... Mickaël Guessant