Seems that org.apache.ojb.broker.PersistenceBrokerFactory.createPersistenceBroker(java.lang.String repositoryFile, java.lang.String user, java.lang.String password)
may be what you are looking for? I'm new to OJB too, so I'm not sure this is right, but it seems to be. Found this by grepping through http://db.apache.org/ojb/api/index.html, BTW. -----Original Message----- From: Johnson, Nathaniel A [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 11:34 AM To: OJB Users List Subject: dynamic repository.xml Is there a way to dynamically set the location of the repository.xml file through code? We would like to put it in a settings directory, that changes when we migrate to different environments, but it seems that OJB is looking in the pwd of the currently running process. So we can not use the OJB.properties file to set this location. Thanks, Nate --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]