I've been looking through many of the classes inside the ColdFusion Java
libraries trying to find something that would help me determine if the code
is currently inside a scoped or named lock.  Has anyone else run across
anything that relates to inspecting or determining lock status?

Basically, I want something like this.  Please don't ask why I want this...
you don't want to know.

<cfscript>
context = createObject("java", "coldfusion.runtime.NeoPageContext");
isLocked = context.getNamedLock();
</cfscript>

<cfif isLocked eq "">
    <cflock timeout="30" throwontimeout="Yes" scope="SESSION">
</cfif>

<< put some code that meets a race condition here >>

<cfif isLocked eq "">
    </cflock>
</cfif>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211548
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to