Re: ERXEC question
Re: ERXEC question
- Subject: Re: ERXEC question
- From: Lachlan Deck <email@hidden>
- Date: Tue, 5 Aug 2008 07:57:36 +1000
On 05/08/2008, at 1:24 AM, Gustavo Pizano wrote:
Well I have a component which was using the session
defaultEditingContext, so what I did was that I create an instance
variable in that component of ERXEC, then I replace the
displayBoard = (DisplayBoard)
EOUtilities
.createAndInsertInstance(session().defaultEditingContext(),
"DisplayBoard");
for this :
displayBoard =
(DisplayBoard)ERXEOControlUtilities.createAndInsertObject(
myEditingContext, "DisplayBoard");
then I got the following message when running the application,
Error: java.lang.IllegalStateException: You must enable the EC
unlocker if you want to coalesce autolocks.
Reason: You must enable the EC unlocker if you want to coalesce
autolocks.
I looked inside the methods of myEditingContext, which BTW is an
instance of ERXEC, and found the following,
myEditingContext.setCoalesceAutoLocks(false);
Don't worry about doing that. Just set these properties in your
Properties file:
extend ERXApplication
extend ERXSession
use ERXEC.newEditingContext()
Properties:
er.extensions.ERXApplication.useEditingContextUnlocker=true
er.extensions.ERXEC.defaultAutomaticLockUnlock=true
er.extensions.ERXEC.useSharedEditingContext=false
er.extensions.ERXEC.defaultCoalesceAutoLocks=true
er.extensions.maxPageReplacementCacheSize=5000
er.extensions.ERXEnterpriseObject.updateInverseRelationships=true
with regards,
--
Lachlan Deck
_______________________________________________
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