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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to