----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 12, 2002 1:42 PM
Subject: using OJB with 2 or more databases
Hello,
I plan to use OJB for my project which interacts with more than 1
database.
How could I do this with OJB??
Should I use more than one repository.xml file (one repository.xml for
each database)?
# Yes.
How do you choose the good repository.xml file? With the mothod
createPersistencebroker("repository.xml") ?
# Use createPersistenceBroker(pbKey) with a PBKey match your other DB's.
Also you can use defaultPersistenceBroker() to get PB instances of your
default repository.
What is the best solution?
# For example see
repository.xml and repositoryFarAway.xml
(some comments in the file).
See test cases
...odmg.MultiDBUsageTest
...broker.MultipleDBTest
HTH,
Armin
Thank you
Sylvain
--
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]>