The following example shows how you can build a custom tag wrapper around a CFX tag that is not thread-safe. The wrapper forwards attributes to the non-thread-safe CFX tag that is used inside a cflock tag.
<cfparam name="Attributes.AttributeOne" default=""><cfparam name="Attributes.AttributeTwo" default=""><cfparam name="Attributes.AttributeThree" default=""><cflock timeout=5type="Exclusive"name="cfx_not_thread_safe"><cfx_not_thread_safe attributeone=#attributes.attributeone#attributetwo=#attributes.attributetwo#attributethree=#attributes.attributethree#></cflock>
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | KnowledgeBase | Bug Reporting
Version 7
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/7/htmldocs/00001174.htm