You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by "Vesely, Maxim [IT]" <ma...@citigroup.com> on 2004/06/21 15:33:09 UTC
Specifying OJB.properties location in a program
Hi all,
Is there a way to specify OJB.properties file location in a program. I want to conditionally use one of two OJB.properties files depending on whether running under managed environment of Websphere or as a standalone application.
Thank you,
Max.
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Specifying OJB.properties location in a program
Posted by Thomas Dudziak <to...@first.fhg.de>.
Vesely, Maxim [IT] wrote:
>Hi all,
>
>Is there a way to specify OJB.properties file location in a program. I want to conditionally use one of two OJB.properties files depending on whether running under managed environment of Websphere or as a standalone application.
>
>
You can specifiy the path to the properties file via the system property
"OJB.properties" (System.setProperty("OJB.properties", myPath) or java
commandline switch -D). Please note that you have to set this variable
*before* you're using any OJB feature otherwise the value will be ignored.
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org