Isn't it possible to have one repository.xml file but more than one <jdbc-connection-descriptor> in it??
If you use another repository (ex.: db2_repository.xml for my second DB), do we need the default repository for this DB? Sylvain -----Message d'origine----- De: Armin Waibel [mailto:[EMAIL PROTECTED]] Date: jeudi, 12. septembre 2002 13:55 �: OJB Users List Objet: Re: using OJB with 2 or more databases ----- 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]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
