We have an application which uses an object in
generating page output every request.
 
eg: cfset somevar = myobj.function(param1, param2, param3)
 
I have rewritten it just now as a CFC (originally Java)
and plan to invoke it via CFObject. 
 
It is generally called upon about 5 times within a page request
to do some processing 
 
My question is,
 
We will be calling it within the application.cfm 
so should it be 
 
1) invoked once and loaded into application memory
2) invoked once per session and saved into session memory
3) invoke and use each page request 
 
Just wondering if using / storing an object in memory vs invkoing it upon each request
has benfits. Dos MX do object caching behind the scenes?
Im am assuming depending on Java vs some other type of object .. it should be done 
differently?
Does anyone have any war scars in this area ?
 
What if the CFC was instead a Java Object ?
(the current 4.5 site is a Java Object, thread safe and invoked each request)
(3 years ago, it was written as a singleton class but CF4.5 didn't like that / didn't
seem to work that way so we just made it thread safe.)
 
I know this is broad as Im scoping avenues for the MX way :-)
 
cheers
Ramon
 
 
 

- NOTICE -

This message may contain confidential, proprietary or legally privileged 
information and is intended only for the use of the addressee named above.
No confidentiality or privilege is waived or lost by any mistransmission.
If you are not the intended recipient of this message you are hereby 
notified that you must not use, disseminate, copy it in any form or take
any action in reliance on it.  If you have received this message in error
please delete it and any copies of it and notify CREDIT SUISSE ASSET MANAGEMENT
immediately.

Any views expressed in this message are those of the individual sender, 
except where the message specifically states otherwise and the sender is 
authorized to state them to be the views of CREDIT SUISSE ASSET MANAGEMENT.

CREDIT SUISSE GROUP, CREDIT SUISSE FIRST BOSTON, and each legal entity in
the CREDIT SUISSE FIRST BOSTON or CREDIT SUISSE ASSET MANAGEMENT  business
units of CREDIT SUISSE FIRST BOSTON reserve the right to monitor all e-mail
communications through its networks.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to