We are loading all our configuration files via a class loader. So they can
be anywhere in the class path and the program can be started from anywhere.

The castor configuration files have to be relative to the current working
directory. The XML file for the database could be loaded via a class loader
to (using InputSource) but the mapping file referenced from there wouldn't
be found.

This way we always have to set the current working directory to the base
directory of the class files. This is quite annoying and prevents us from
packing it all (classes, property files and XML files) into a JAR.

It would be really nice if someone could help us to change this (e.g. by
implementing a second loadConfiguration() method).
If someone knows a work around we would like to know of course.

Best regards,

Ole

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to