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 vb...@siuh.edu on 2003/04/04 20:12:00 UTC
Re: dynamic repository.xml(Scanned for viruses: Notes Admin)
I had a similar problem. As I understand the documentation internally OJB
uses classloader's getResource method. It seems that it tries to load
file from pwd as the lest resort. However, I beleive it will load the
file from class path if its there (e.g. root of jar file). I personally
have repository*.xml in my classes folder in my Tomcat application and it
works.
Sincerely,
Vladimir Berezniker
Sr. Programmer Analyst
Staten Island University Hospital
"Johnson, Nathaniel A" <na...@indiana.edu>
04/04/2003 12:33 PM
Please respond to "OJB Users List"
To: "OJB Users List" <oj...@db.apache.org>
cc:
Subject: dynamic repository.xml(Scanned for viruses: Notes
Admin)
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: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org