Hi Sravan, why do you need to lock that method call? The object is not in a persistant scope. Is that getter accessing data in such a scope (i hope not).
Either way you want something more like: <cflock timeout="10" throwontimeout="Yes" type="READONLY" name="nw_call"> -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Sravan kumar Sent: Wednesday, July 06, 2005 1:51 PM To: [email protected] Subject: CFOBJECT and CFLOCk Importance: High Hi all, I need a little help with a java class. can i use CFLOCK like this for a method of a java class? <cfobject action="create" type="java" class="testtttr" name="CTTest1"> <cfset adapter1 = CTTest1.getInstance()> <cflock timeout="120" throwontimeout="Yes" type="EXCLUSIVE" name="nw_call"> <cfset uid1 = adapter1.getAllAttributes("#cookie.hynoe#")> </cflock> Thanks Sravan ---------------------------------------------------------- To post, send email to [email protected] To unsubscribe: http://www.dfwcfug.org/form_MemberUnsubscribe.cfm To subscribe: http://www.dfwcfug.org/form_MemberRegistration.cfm ---------------------------------------------------------- To post, send email to [email protected] To unsubscribe: http://www.dfwcfug.org/form_MemberUnsubscribe.cfm To subscribe: http://www.dfwcfug.org/form_MemberRegistration.cfm
