Josh,

Sounds more like your not var'ing your variables properly.

Make sure that the variable inside the gateway.cfc that is the query
is var'd properly.

Mark

On 7/17/07, Josh Nathanson <[EMAIL PROTECTED]> wrote:
> Hey all,
>
> I have a gateway cfc that is cached in the Application scope.  It's reading
> data from the database. It looks like I'm seeing some evidence of race
> conditions on this cfc, i.e. data from other requests is appearing in the
> application.
>
> I've never used locks before, just want to make sure I'm doing it right.
> Here's what my code looks like:
>
> <cflock scope="application" timeout="5" type="readonly">
>   <cfset getitems = Application.mygatewaymethod(args) />
>  </cflock>
>
> Do I have that right for what I need to do, namely prevent the threads from
> crossing when reading in the data.
>
> -- Josh
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 beta – Build next generation applications today.
Free beta download on Labs
http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283820
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to