Re: [CFCDEV] Application.cfc: where to set DSN

2007-06-11 Thread Tom Chiverton
On Friday 08 Jun 2007, Brian Kotek wrote: remote facade generation I keep seeing references to this, and 'security advisors'. Is there a good blog post or web page somewhere ? -- Tom Chiverton Helping to advantageously promote ubiquitous action-items on: http://thefalken.livejournal.com

Re: [CFCDEV] Application.cfc: where to set DSN

2007-06-11 Thread Sammy Larbi
Tom Chiverton wrote, On 6/8/2007 8:50 AM: On Friday 08 Jun 2007, Joe Lakey wrote: To use a Config CFC, would I hard-code the settings variables in the Config CFC file, instantiate it in application scope in onApplicationStart(), then call application.config.getDSN() (for example)?

Re: [CFCDEV] Application.cfc: where to set DSN

2007-06-11 Thread Sammy Larbi
Brian Kotek wrote, On 6/8/2007 2:18 PM: Philip, questions are good. However, these questions don't really have any bearing on why you would use ColdSpring. It makes no difference what my database tables look like, what methods the CFCs have, what the datasource looks like, what mapping you use

RE: [CFCDEV] Application.cfc: where to set DSN

2007-06-08 Thread Joe Lakey
To: cfcdev@cfczone.org Subject: Re: [CFCDEV] Application.cfc: where to set DSN I suppose the question here is, why not consolodate them all in exactly one place: a Config CFC? From what you said you wouldn't want to set the DSN to application.dsn in onApplicationStart() becuase then its

Re: [CFCDEV] Application.cfc: where to set DSN

2007-06-08 Thread Tom Chiverton
On Friday 08 Jun 2007, Joe Lakey wrote: To use a Config CFC, would I hard-code the settings variables in the Config CFC file, instantiate it in application scope in onApplicationStart(), then call application.config.getDSN() (for example)? Yeah. What would be the benefit of this approach

RE: [CFCDEV] Application.cfc: where to set DSN

2007-06-08 Thread Phillip Senn
PM To: cfcdev@cfczone.org Subject: Re: [CFCDEV] Application.cfc: where to set DSN I suppose the question here is, why not consolodate them all in exactly one place: a Config CFC? From what you said you wouldn't want to set the DSN to application.dsn in onApplicationStart() becuase

Re: [CFCDEV] Application.cfc: where to set DSN

2007-06-08 Thread Peter Bell
Actually, Brian is spoiled by ColdSpring. I'm spoiled by LightWire. Horses for courses . . . On 6/8/07 9:53 AM, Phillip Senn [EMAIL PROTECTED] wrote: What would be the benefit of this approach Hello! Brian and Peter are saying I'm just so spoiled by ColdSpring that I would never build an

Re: [CFCDEV] Application.cfc: where to set DSN

2007-06-08 Thread Brian Kotek
On 6/8/07, Phillip Senn [EMAIL PROTECTED] wrote: Let's cut to the chase and see an example using ColdSpring. Not much to show really. ColdSpring is actually shockingly easy to use. This will create your UserService instance. Because you tell ColdSpring that this CFC requires a Config

Re: [CFCDEV] Application.cfc: where to set DSN

2007-06-08 Thread Brian Kotek
On 6/8/07, Phillip Senn [EMAIL PROTECTED] wrote: Let's cut to the chase and see an example using ColdSpring. Actually I think this blog entry specifically would interest you since it describes almost the exact situation we've been talking about in this thread:

Re: [CFCDEV] Application.cfc: where to set DSN

2007-06-08 Thread Tom Chiverton
On Friday 08 Jun 2007, Phillip Senn wrote: Let's cut to the chase and see an example using ColdSpring. Does no-one read the Blogregator these days :-)

Re: [CFCDEV] Application.cfc: where to set DSN

2007-06-08 Thread Brian Kotek
On 6/8/07, Joe Lakey [EMAIL PROTECTED] wrote: The post about user-dependent DSNs was from someone responding to my original question. My app uses only one DSN. Sorry about that, got lost in the shuffle! :-) To use a Config CFC, would I hard-code the settings variables in the Config CFC

Re: [CFCDEV] Application.cfc: where to set DSN

2007-06-08 Thread Brian Kotek
Very true Peter! I honstely haven't looked at LightWire at all since ColdSpring does everything I need it to. But I should try to set aside some time to kick the tires just to see how you approached the problem. On 6/8/07, Peter Bell [EMAIL PROTECTED] wrote: Actually, Brian is spoiled by

RE: [CFCDEV] Application.cfc: where to set DSN

2007-06-08 Thread Phillip Senn
that I have lots of questions. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Kotek Sent: Friday, June 08, 2007 10:40 AM To: cfcdev@cfczone.org Subject: Re: [CFCDEV] Application.cfc: where to set DSN On 6/8/07, Phillip Senn [EMAIL

Re: [CFCDEV] Application.cfc: where to set DSN

2007-06-08 Thread Brian Kotek
Philip, questions are good. However, these questions don't really have any bearing on why you would use ColdSpring. It makes no difference what my database tables look like, what methods the CFCs have, what the datasource looks like, what mapping you use for your component paths, or what the

Re: [CFCDEV] Application.cfc: where to set DSN

2007-06-07 Thread Sammy Larbi
Hi Joe, In my view, a DSN is a variable that properly belongs to an application. Therefore, I'd go with putting it in onApplicationStart, since by the very nature of its name, implies that you are setting variables belonging to the application. Others may view it differently, however. Sam

Re: [CFCDEV] Application.cfc: where to set DSN

2007-06-07 Thread Brian Kotek
Exactly. Set it in onApplicationStart() using an application variable (ie application.dsn) and then pass that into whatever needs it. Of course, if you used ColdSpring, you could let it handle all this. ;-) HTH, Brian On 6/7/07, Sammy Larbi [EMAIL PROTECTED] wrote: Hi Joe, In my view, a

RE: [CFCDEV] Application.cfc: where to set DSN

2007-06-07 Thread Phillip Senn
server. That way if I ran into any permission problems, it would come out early. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sammy Larbi Sent: Thursday, June 07, 2007 12:43 PM To: cfcdev@cfczone.org Subject: Re: [CFCDEV] Application.cfc: where to set

Re: [CFCDEV] Application.cfc: where to set DSN

2007-06-07 Thread Brian Kotek
Subject: Re: [CFCDEV] Application.cfc: where to set DSN Hi Joe, In my view, a DSN is a variable that properly belongs to an application. Therefore, I'd go with putting it in onApplicationStart, since by the very nature of its name, implies that you are setting variables belonging to the application

RE: [CFCDEV] Application.cfc: where to set DSN

2007-06-07 Thread Joe Lakey
request.DSN=Application.DSN in my config file that I include in onRequest()? Joe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sammy Larbi Sent: Thursday, June 07, 2007 11:43 AM To: cfcdev@cfczone.org Subject: Re: [CFCDEV] Application.cfc: where to set

Re: [CFCDEV] Application.cfc: where to set DSN

2007-06-07 Thread Peter J. Farrell
Brian Kotek said the following on 6/7/2007 1:17 PM: I'm just so spoiled by ColdSpring that I would never build an app without it. ;-) Hey, that's my line ;-) .Peter You are subscribed to cfcdev. To unsubscribe, please follow the instructions at http://www.cfczone.org/listserv.cfm CFCDev is

Re: [CFCDEV] Application.cfc: where to set DSN

2007-06-07 Thread Brian Kotek
Of Sammy Larbi Sent: Thursday, June 07, 2007 11:43 AM To: cfcdev@cfczone.org Subject: Re: [CFCDEV] Application.cfc: where to set DSN Hi Joe, In my view, a DSN is a variable that properly belongs to an application. Therefore, I'd go with putting it in onApplicationStart, since by the very

Re: [CFCDEV] Application.cfc: where to set DSN

2007-06-07 Thread Peter Bell
: [CFCDEV] Application.cfc: where to set DSN Hi Joe, In my view, a DSN is a variable that properly belongs to an application. Therefore, I'd go with putting it in onApplicationStart, since by the very nature of its name, implies that you are setting variables belonging

RE: [CFCDEV] Application.cfc: where to set DSN

2007-06-07 Thread Josen Ruiseco
to the CF community. Regards, Josen _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Bell Sent: Thursday, June 07, 2007 3:44 PM To: cfcdev@cfczone.org Subject: Re: [CFCDEV] Application.cfc: where to set DSN +1. Only thing I put into application.cfc (in terms