Thanks, 

it works like a charm.

# OJB.properties -- configuration of the OJB runtime environment
repositoryFile=data/conf/repository.xml

and then...

    System.setProperty("OJB.properties","data/conf/OJB.properties");
    new TestOJB().queryDatabase();


ps: how does one submit a (javadoc) patch for ORB?

Jason Pyeron


On Wed, 27 Aug 2003, Charles Anthony wrote:

> i.e. it seems you can specify the filename in the system property
> OJB.properties 
> 
> So....
> 
> specify on the command line that start the JVM the following :
> -DOJB.properties=/fullpath/to/MyOJB.properties
> or
> -DOJB.properties=c:/temp/MyOJB.properties

or

-DOJB.properties=relative/path/to/MyOJB.properties

> 
> >-----Original Message-----
> >From: Jason Pyeron [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, August 27, 2003 5:15 PM
> >
> >Can the properties be spcified from the java code or better 
> >yet, can the 
> >location (and name?) of OJB.properties be specified?
> >

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                   http://www.pyerotechnics.com   -
- Partner & Sr. Manager         Pyerotechnics Development, Inc. -
-                               500 West University Parkway #1S -
- +1 (410) 808-6646             Baltimore, Maryland  21210-3253 -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information. If you 
have received it in error, purge the message from your system and 
notify the sender immediately.  Any other use of the email by you 
is prohibited.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to