On Tuesday 16 Oct 2007, [EMAIL PROTECTED] wrote:
> How do you handle datasources inside CFCâEUR(tm)s.

ColdSpring and Reactor. That may or may not be over kill for you.

> 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.

That's just as 'bad'.

> But I donâEUR(tm)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#" />

As you can see, it's a pain even though strictly it's better.

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

Pass the DSN name as a parameter to init() ? Yeah, that's better again.

-- 
Tom Chiverton. Are you a great ColdFusion programmer, who knows Reactor and 
ColdSpring, and has done some Flex work ? Would you like to work for a top 30 
law firm in Manchester, UK ? Are not an agency ? If yes, send email !

****************************************************

This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office.  Any reference to a partner in 
relation to Halliwells LLP means a member of Halliwells LLP.  Regulated by The 
Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

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