How do you handle datasources inside CFC’s.
until now I have just been using the variable application.dsn.

But I have been told that I should include the database name in the parameter 
call to the cfc.

But I don’t want to call the cfc with the database name every single time the 
cfc is called like:
        <CFINVOKE COMPONENT="cfc.Meals" METHOD="getMeal" 
dns="#application.dns#" />

Is it possible to invoke the whole component with the database information and 
then call that instance without the dns?? 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291179
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