• 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
ERXEC (and WCEC also) lockCount() method is missing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ERXEC (and WCEC also) lockCount() method is missing


  • Subject: ERXEC (and WCEC also) lockCount() method is missing
  • From: Filippo Laurìa <email@hidden>
  • Date: Fri, 17 Jan 2014 14:06:41 +0100

Hi everyone,
i've this piece of code:

// snipped start
static void waitForNextJob(QueueDescriptor descriptor) {
    TokenDispenser dispenser = dispenserFor(descriptor);
    int lockCount = 0;
    try {
        if (descriptor.editingContext() instanceof ERXEC) {
            ERXEC ec = (ERXEC) descriptor.editingContext();
            while (ec.lockCount() > 0) {
                ec.unlock();
                lockCount++;
            }
        }
        dispenser.getJobToken();
    } finally {
        while (lockCount > 0) {
            descriptor.editingContext().lock();
            lockCount--;
        }
    }
}
// snippet end

In it, as you can see, is used method lockCount() from class ERXEC
(project wonder 2.0?).
I'm trying to build using project wonder 6.0.
Considering that the method lockCount() is missing in project wonder
6.0 (http://jenkins.wocommunity.org/job/Wonder/javadoc/er/extensions/eof/ERXEC.html),
how can i obtain the same behavior?

Thank you.

--
Filìppo Laurìa

 _______________________________________________
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 (and WCEC also) lockCount() method is missing
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Multi-machine deployment - only one instance receiving requests
  • Next by Date: Re: ERXEC (and WCEC also) lockCount() method is missing
  • Previous by thread: Re: Multi-machine deployment - only one instance receiving requests
  • Next by thread: Re: ERXEC (and WCEC also) lockCount() method is missing
  • Index(es):
    • Date
    • Thread