Im Tomcat I go this way:
1. get Cataline home:
catalinaHome = System.getProperty("catalina.home");
2. Set a special congig directory:
configDir = catalinaHome + "/webapps/CommonConfigDir";
3. Set the path to "OJB.properties":
System.setProperty("OJB.properties", configDir + "/OJB.properties");
Frank
-----Ursprüngliche Nachricht-----
Von: Tuna Ozkasap [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 18. November 2005 09:52
An: OJB Users List; [EMAIL PROTECTED]
Betreff: Re: OJB.properties
The link (which I have read before sending the first mail) does not describe
how to change the absolute path of the properties file it only says that you
can change the name of the file by changing the System property
"OJB.properties" I also chacked out the code OJBConfiguration.java but I did
not change it for consistency in the code (I do not know how it works)
On 11/18/05, Alexandre Borgoltz <[EMAIL PROTECTED]> wrote:
>
> This should help:
>
> http://db.apache.org/ojb/docu/guides/ojb-properties.html
>
> Alexandre BORGOLTZ
> Head of Technology
>
> SmartJog SA
> Phone: +33 (0)1 4996 6324
> Fax: +33 (0)1 4996 6405
> Mobile: +33 (0)6 8882 1417
> [EMAIL PROTECTED]
>
>
> Tuna Ozkasap wrote:
>
> >Hi every one,
> >I want to use OJB for different applications (like web applications
> >in
> >timcat) but OJB.properties is not configurable how do you overcame
> >this problem, I mean how can I make the OJB.propertiesfile's absolute
> >path configurable?
> >
> >--
> >Tuna Ozkasap
> >Yaz?l?m Mühendisi
> >Trend-Tech Cyberpark
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Tuna Ozkasap
Yazılım Mühendisi
Trend-Tech Cyberpark
Confidentiality note:
The information in this email and any attachment may contain confidential and
proprietary information of Heidelberger Druckmaschinen AG and/or its affiliates
and may be privileged or otherwise protected from disclosure. If you are not
the intended recipient, you are hereby notified that any review, reliance or
distribution by others or forwarding without express permission is strictly
prohibited and may cause liability. In case you have received this message due
to an error in transmission, we kindly ask you to notify the sender immediately
and to delete this email and any attachment from your system.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]