Re: [ojb-users] Using multiple repository.xml
Brought to you by:
thma
From: Thomas M. <tho...@ho...> - 2002-06-17 21:00:06
|
WIth OJB 0.9 that's not possible. But we are working on this issue. will be fixed in the next public release! cheers, Thomas Bradley A. Smith wrote: > Is is possible to use multiple repository.xml files? > > For example, > > broker = PersistenceBrokerFactory.createPersistenceBroker("first.xml"); > // Use broker to access first database > ... > PersistenceBrokerFactory.releaseInstance(broker); > > broker = PersistenceBrokerFactory.createPersistenceBroker("second.xml"); > // Use broker to access second database > ... > > I have two packages using OJB which I would like to configure with different > xml files. When I test each package individually, all tests pass. However, > when I test them together (by creating a JUnit TestSuite), I receive "not > found in OJB Repository" errors. Why? > > > Thanks, > Bradley > > > > _______________________________________________________________ > > Sponsored by: > ThinkGeek at http://www.ThinkGeek.com/ > _______________________________________________ > Objectbridge-users mailing list > Obj...@li... > https://lists.sourceforge.net/lists/listinfo/objectbridge-users > > > |