Hi Guido, ----- Original Message ----- From: "Guido Beutler" <[EMAIL PROTECTED]> To: "OJB Users List" <[EMAIL PROTECTED]> Sent: Saturday, November 09, 2002 4:26 PM Subject: OJB internal tables in different database or schema
> Hi, > > is it possible to store the OJB internal tables at a different database or > schema > to avoid mixing of existing tables and OJB tables? That's no problem. > If yes, where can I find information about that? mail archive http://www.mail-archive.com/ojb-user@;jakarta.apache.org/msg00544.html Separate your data in a own repository and let the OJB internal data in the default repository (default repository means the repository file specified in OJB.properties file) There was a example (repositoryFarAway.xml/repository.xml) using multiple database support - was shipped with OJB. The default repository have to know about the user data of your second DB. Thus you have to put a reference of your data in the default repository e.g. <!ENTITY farAway SYSTEM "repositoryFarAway_user.xml"> See test cases ...odmg.MultiDBUsageTest ...broker.MultipleDBTest Use createPersistenceBroker(pbKey) with a PBKey match your data-DB when using PB-api. Also you can use defaultPersistenceBroker() to get PB instances of your default repository (matching the OJB DB). regards, Armin > > best regards, > > Guido > > > > -- > To unsubscribe, e-mail: <mailto:ojb-user-unsubscribe@;jakarta.apache.org> > For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org> > > > -- To unsubscribe, e-mail: <mailto:ojb-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>
