• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ERXEC question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: ERXEC question
      • From: Guido Neitzer <email@hidden>
References: 
 >ERXEC question (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Re: ERXEC question
  • Next by Date: Re: ERXEC question
  • Previous by thread: Re: ERXEC question
  • Next by thread: Re: ERXEC question
  • Index(es):
    • Date
    • Thread