Let me try and put some feet on that. If I am creating a series of methods that all manipulate information from a database such as product info, should I create a static of instance method? The product methods would include inserting, updating, deleting, and displaying a product and it's details. To me, it seems like that would be a "service" type of action and not something that would need to be instantiated, but that's just a guess.
On the otherhand, I have a component with several methods that manipulate data from a database such as users and user's newsletters, shipping addres and billing address. The methods would insert, update, delete and display user(s) and user details such as shipping info, billing info, newsletter subscriptions, etc. This seems like it would be an instance but I'm not sure why. -Aaron On 2/16/06, James Holmes <[EMAIL PROTECTED]> wrote: > My suggestion; if the CFC has multiple methods that will use the same > info, or that you want to share info, use an instance with properties > that you init(). If you are just using a collection of functions that > don't share info (almost a UDF collection but in a CFC) just make it > static. > > On 2/17/06, Aaron Roberson <[EMAIL PROTECTED]> wrote: > > I still don't really understand when I should create a static > > component and when I should create an instance-based component. > > -- > CFAJAX docs and other useful articles: > http://jr-holmes.coldfusionjournal.com/ > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232663 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

