Hi,

> 
> Hi Thomas,
> I am really sorry for the direct email. 

No problem, I forgot to answer your message in the mailinglist.

I was wondering if there is a
> way to pass an object version of repository.xml to create a 
> persistence
> broker.
> 

http://jakarta.apache.org/ojb/apidocs/org/apache/ojb/broker/singlevm/Persist
enceBrokerImpl.html#PersistenceBrokerImpl(org.apache.ojb.broker.metadata.Des
criptorRepository)

cheers,
Thomas

> Thanks 
> -Suresh
> -----Original Message-----
> From: Avadhanula, Suresh 
> Sent: Sunday, September 29, 2002 2:22 PM
> To: [EMAIL PROTECTED]
> Subject: Initializing OJB
> 
> 
> Hi,
> I am new to OJB. I am shifting form Castor-JDO.  I have the following
> question regarding initializing OJB.
> 
> I would like to use the PersistenceBrokerAPI. I see that, irrespective
> of API that we use (PersistenceBroker, JDO, ODMG), we need to 
> initialize
> OJB using a repository.xml and OJB.properties.
> 
> 1) Can we auto load repository.xml?
> 2) Can I pass repository.xml as an InputStream or a DOM instead of
> String to PersistenceBrokerFactory.createPersistenceBroker() via PBKey
> of course. I see that createPersistenceBroker(String repository) is
> deprecated.
> 
> So far.. after looking at the code, I am unable to figure out 
> the a way
> to pass in object version of repository.xml.
> 
> The reason I would want to do this is that, I can wrap OJB 
> and create it
> as a separate module, which other modules that need 
> persistence can use.
> I do not have to change the Persistence module to include 
> repository.xml
> every time a new module that wants to use Persistence is included. I
> would like to pass in object form of the repository.xml during startup
> time, which Persistence Module would consume and know who to store the
> objects.
> 
> 
> I appreciate your help
> Thanks
> Suresh
> 

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

Reply via email to