Mahler,

I did not realize that you could specify the path for repository.xml in the
OBJ.properties file.  In that case, how about if the code is not able to
find the file from the path specified in the OJB.properties file, it uses
the location of the OJB.properties file to determine the location of
repository.xml file.

Take a look at the attached patch and see if it makes sense to include it.

----- Original Message -----
From: "Thomas Mahler" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 10:53 PM
Subject: Re: location of repository.xml


> Hi Rajeev,
>
> 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>

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