• 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: Q about locked ec
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Q about locked ec


  • Subject: Re: Q about locked ec
  • From: Kieran Kelleher <email@hidden>
  • Date: Fri, 19 Feb 2010 11:44:13 -0500

Because ERXLongResponseTask, which I don't use, uses auto lock/unlock, just like a request thread.

That code is useful for plain old java task Threads that implement Callable or Runnable and do not extend ERXLongResponseTask. It is also useful for any other time you don't want an autolocking EC, perhaps for lazily initialization of an EO in the database in a business logic method where there is no guarantees that you can assume you are in a request thread with autolocking.

I will make a patch and see if someone with commit rights can apply it.

Regards, Kieran

On Feb 19, 2010, at 10:21 AM, John Huss wrote:

So why don't we add that code (or something similar) to ERXLongResponseTask.DefaultImplementation?

John

On Thu, Feb 18, 2010 at 6:02 AM, Kieran Kelleher <email@hidden> wrote:
Really, just paste the few lines of code I gave u yesterday into a file and name it MyEOUtils.java, and then change your code below to use the static factory method to create the 'manual locking' ec.


 _______________________________________________
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: Q about locked ec
      • From: Kieran Kelleher <email@hidden>
References: 
 >Q about locked ec (From: Philippe Rabier <email@hidden>)
 >Re: Q about locked ec (From: Kieran Kelleher <email@hidden>)
 >Re: Q about locked ec (From: Philippe Rabier <email@hidden>)
 >Re: Q about locked ec (From: Kieran Kelleher <email@hidden>)

  • Prev by Date: Re: Problem re-executing adaptor operations
  • Next by Date: Re: Problem re-executing adaptor operations
  • Previous by thread: Re: Q about locked ec
  • Next by thread: Re: Q about locked ec
  • Index(es):
    • Date
    • Thread