Doing a search for semaphore in *.* (global search), it shows many results.
Few of them are :

In framework/service/dtd/services.xsd

        <xs:attribute name="semaphore" default="none">
            <xs:simpleType>
                <xs:restriction base="xs:token">
                    <xs:enumeration value="none"/>
                    <xs:enumeration value="fail"/>
                    <xs:enumeration value="wait"/>
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>


In framework/service/servicedef/services.xml

    <!-- Service Engine Services -->
    <service name="purgeOldJobs" engine="java"
            location="org.ofbiz.service.ServiceUtil" invoke="purgeOldJobs"
auth="true" use-transaction="false" semaphore="wait">


It has to some thing wrong with your search.

Vikas



On Fri, Mar 14, 2008 at 8:52 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> David
>
> I cannot find the use for semaphore in any document I can lay my hands on.
> I looked in ALL the files using a global search for "semaphore" as well as
> looking manually in framework\service\dtd\*.* and can find nothing.
>
> I also re-read http://ofbiz.apache.org/docs/services.html
>
> Can you point me to another document I am missing?  I would also think
> that
> searching the java files for semaphore would have turned up something.
>
> Is this something newer than 1Jan2008 as that is the last time I got a
> build.
>
> Skip
>
> -----Original Message-----
> From: David E Jones [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 10, 2008 7:55 PM
> To: [email protected]
> Subject: Re: Service Synchronization
>
>
>
> Check out the "semaphore" attribute on the service element/tag in the
> service def XML file. In other words, you just specify how it should
> behave on the service definition.
>
> -David
>
>
> On Mar 10, 2008, at 8:54 PM, [EMAIL PROTECTED] wrote:
>
> > Can you point me to the entity name or how to call the service start?
> > Doesn't make much sense writing something new that already exists.
> >
> > Skip
> >
> > -----Original Message-----
> > From: David E Jones [mailto:[EMAIL PROTECTED]
> > Sent: Monday, March 10, 2008 6:38 PM
> > To: [email protected]
> > Subject: Re: Service Synchronization
> >
> >
> >
> > This feature already exists in the Service Engine, BTW.
> >
> > -David
> >
> >
> > On Mar 10, 2008, at 6:37 PM, [EMAIL PROTECTED] wrote:
> >
> >> I have a few services that take from 4 to 8 hours to complete with
> >> the large data sets I am dealing with.  I want to synchronize those
> >> services so it is impossible to start them if they are already
> >> running.  My plan is to create a new entity to hold the service
> >> name, start time, stop time, etc and have the service read the
> >> entity record to see if it is already running.
> >>
> >> However, I know that entity records are frequently cached.  Is there
> >> a setting in the entity definition to never cache or some easy
> >> method to force the cache for the entity to clear?
> >>
> >> Skip
> >>
> >> No virus found in this outgoing message.
> >> Checked by AVG Free Edition.
> >> Version: 7.5.516 / Virus Database: 269.21.4/1313 - Release Date:
> >> 3/5/2008 9:50 AM
> >>
> >>
> >
> >
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.5.516 / Virus Database: 269.21.4/1313 - Release Date:
> > 3/5/2008
> > 9:50 AM
> >
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.5.516 / Virus Database: 269.21.4/1313 - Release Date:
> > 3/5/2008
> > 9:50 AM
> >
>
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.21.4/1313 - Release Date: 3/5/2008
> 9:50 AM
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.518 / Virus Database: 269.21.7/1324 - Release Date: 3/10/2008
> 7:27 PM
>
>

Reply via email to