thanks for posoting your patch!
In OJB.properties you can specify the location/name of the repository file already. Why did'nt you use this feature?
Why was it necessary for you to change the code?
cheers,
Thomas
Rajeev Kaul wrote:
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");
------------------------------------------------------------------------
--
To unsubscribe, e-mail: <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>
-- To unsubscribe, e-mail: <mailto:ojb-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>
