----- Original Message ----- From: "casterx" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 29, 2002 11:36 PM Subject: RE: PBKey, repositoryFile & broker.store() in a servlet environment bug
> Armin, > > Thanks for your reply. I understand the need for a default repository. I'm > just trying to not have to hard code its location since I can't be sure > where it will be located on any given deployed server. To get around that, I > just find the WEB-INF path of my repository via the servlet getRealPath(). > Sorry, i misunderstood you. > Is there a way to programmatically set the default repository location? For > example, can I override the repositoryFile value at runtime? Currently i do not know a way to do this. PBF and other classes use the OjbConfigurator/OjbConfiguration to get the properties from the OJB.properties file. Here it was possible to implement a setDefaultRepository(..) method. Then before do other operations on OJB get the OjbConfiguration and call the new set method. It's a hack, but this should be possible. Maybe we should extend your 'requested feature' list ;-) regards, Armin > > Thanks > Caster > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
