Re: Getting EOF to use multiple DBConnections?
Re: Getting EOF to use multiple DBConnections?
- Subject: Re: Getting EOF to use multiple DBConnections?
- From: Anjo Krank <email@hidden>
- Date: Tue, 26 Jul 2005 22:08:52 +0200
Hi Dov,
Am 26.07.2005 um 21:09 schrieb Chuck Hill:
If I use the Project Wonder ObjectStoreCoordinatorPool, can I hook
it up
such that the session.defaultEditingContext() returns a ERXEC and
uses a
ERXObjectStoreCoordinator from the pool without having to do
anything else
on my side?
Not sure where to hook in the ERXObjectStoreCoordinatorPool such
that I
don't have to change everything in my app.
You *must* link to ERJars and ERExtensions, *must* extend your
session from ERXSession and *should* extend your app from
ERXApplication. You *must* change every "new EOEditingContext()" to
"ERXEX.newEditingContext()". You *should* build Wonder from CVS,
although I may make a new 2.1 binary release in the next few weeks.
If you don't want or like that... tough, but no problem. Read the
code, bring over what you need to your own classes and tell us when
(if) you succeeded.
Otherwise you just need to set the property values from the docs
(maxOSCs and the like).
Also see
http://wocode.com/cgi-bin/WebObjects/WOCode.woa/2/wa/ShareCodeItem?
itemId=330
I thought there was another pooling implementation there too, but
can't find it.
There used to be one from Andrus Adamchik(?) for WO 4.x, which was
very cool and flexible (and total overkill for most needs:). However,
I can't find it anymore and didn't really try if it runs on 5.x anyway.
Cheers, Anjo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden