This might be a dumb question.

 

But if I create an instance of an Object at Application level, such as a
logging Object.

 

Then I want to invoke the log method on every action of every page, do I
need to lock the object before invoking the log method.

 

Ie

 

<cfset application.Logger = createObject('component',
'com.company.data.Logger.init()' />

 

Then from other pages

 

<cfset result = applicationer.Logger.log(username, datetime, event) />

 

Or would the <cfset need to have a lock around it.

 

Regards

Dale Fraser

 

http://dalefraser.blogspot.com

 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to