Re: [ojb-users] Using multiple repository.xml
Brought to you by:
thma
|
From: Bradley A. S. <br...@ba...> - 2002-06-17 21:33:13
|
I found a workaround by combining the two repository files and specifying
the JDBC connection descriptor for each class descriptor in each of the two
packages. Will putting a connection descriptor in each class descriptor have
any consequences?
I look forward to the next release. Then I'll be able to use the simpler
solution.
Regardless of these minor glitches, I am very happy with OJB. It has filled
a need which I have tried to fill in the past with other products and was
left unsatisfied.
Thanks,
Bradley
----- Original Message -----
From: "Thomas Mahler" <tho...@ho...>
To: "Bradley A. Smith" <br...@ba...>
Cc: <obj...@li...>
Sent: Monday, June 17, 2002 2:00 PM
Subject: Re: [ojb-users] Using multiple repository.xml
> 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
> >
> >
> >
>
>
>
|