I modified the RepositryPersistor class to allow finding the repository.xml files from the location of the OJB.properties file.  If an application using OJB specifies the location of OJB.properties file using the system.properties, then OJB will try to first find the repository.xml file using the classpath. If that fails it will try using the location of the OJB.properties file to find the repository.xml file.  Finally, if that fails it will look for repository.xml in the current directory.
 
If you want to use location of the OJB.properties file for determining location of repository.xml file, you will need to add the following statement in your app initialization:
 

//

// Set the location of OJB properties.

System.setProperty(

"OJB.properties",

"e:/framework/jakarta-ojb/xyz_repository/OJB.properties");

Attachment: RepositoryPersistor.java
Description: Binary data

--
To unsubscribe, e-mail:   <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>


Reply via email to