I am converting Application.cfm to Application.cfc in a CF5 site that
is now running under CFMX7. The Application.cfm uses request.dsn to
define the data source. For Application.cfc, I have three choices:

1. Define request.dsn in OnRequestStart
2. Define request.dsn at the top of Application.cfc, outside of any function.
3. Convert request.dsn to application.dsn and put the variable in
OnApplicationStart. Write request.dsn = application.dsn inside of
OnRequestStart to maintain backwards-compatibility, and phase out the
use of request.dsn over time.

Which method would you pick? Am I missing an option?

Some of the OnApplicationStart functions make database calls, so
choice 1 isn't really an option.

Thank you,
Mike Chabot

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275975
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to