[cfaussie] Re: Application object

2007-06-06 Thread George Lu
t; > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >

[cfaussie] Re: Application object

2007-06-06 Thread Andrew Scott
3:15 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Application object you can loosen you seatbelt now, the ride wont be so bumpy. But the captain asks that you refrain from using the REQUEST scope in case there is any further turbulence

[cfaussie] Re: Application object

2007-06-06 Thread AJ Mercer
gt; > > > > > > > > > > > > > > > > > > > If the URL.updateapp exists - it will call > > > > > > > > onApplicationStart which will initialise your object for you. > > > > > > > > > > > > >

[cfaussie] Re: Application object

2007-06-06 Thread George Lu
gt; which will initialise your object for you. > > > > > > > > > > > > > > Then you can use Application.surveyDAO anywhere in you > > > > > > > application > > > > > >

[cfaussie] Re: Application object

2007-06-06 Thread AJ Mercer
t; > > > > > > > > > > > > Looks like Peter got to youJ > > > > > > > > > > > > > > > > > > > > > > > > > > > > If you set t

[cfaussie] Re: Application object

2007-06-06 Thread Andrew Scott
: [cfaussie] Re: Application object But I've been told if I change the object in cfc I have to init the object again in myPage.cfm so the change'll happen. Is that true? On 07/06/07, AJ Mercer <[EMAIL PROTECTED]> wrote: no, because if the APPLICATION scope does not exist On

[cfaussie] Re: Application object

2007-06-06 Thread George Lu
re is no need > > > > > > and I mean this!! No need to copy the Application.surveyDAO to > > > > > > the request scope. > > > > > > > > > > > > > > > > > > > > &

[cfaussie] Re: Application object

2007-06-06 Thread AJ Mercer
> > > > > request scope. > > > > > > > > > > > > > > > > > > > > I would really like to know who is teaching people to do this, can > > > > > you imagine 1000 users hitting the application and how many ext

[cfaussie] Re: Application object

2007-06-06 Thread George Lu
Peter might like doing this and wasting > > > > valuable > > > > resources, but it should not be a practice taken upon. > >

[cfaussie] Re: Application object

2007-06-06 Thread AJ Mercer
t; > > by such a method.. Peter might like doing this and wasting valuable > > > resources, but it should not be a practice taken upon. > > > > > > > > > > > > If you want to email me your application.cfc, I will modify it and get > > > it

[cfaussie] Re: Application object

2007-06-06 Thread George Lu
cation.cfc, I will modify it and get > > it to work for you. > > > > > > > > Andrew Scott > > Senior Coldfusion Developer > > Aegeon Pty. Ltd. > > www.aegeon.com.au > > Phone: +613 8676 4223 &

[cfaussie] Re: Application object

2007-06-06 Thread AJ Mercer
t; > > > > > *From:* cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *George Lu > *Sent:* Thursday, 7 June 2007 12:57 PM &g

[cfaussie] Re: Application object

2007-06-06 Thread Andrew Scott
Fraser Sent: Thursday, 7 June 2007 1:01 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Application object Yes, Andrew's method of restarting the application is a good one. Beats restarting CF. Mind you be careful as to what url you need to pass the application to cause a re

[cfaussie] Re: Application object

2007-06-06 Thread Andrew Scott
Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 8676 4223 Mobile: 0404 998 273 From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of George Lu Sent: Thursday, 7 June 2007 12:57 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Application object No, I've tried And

[cfaussie] Re: Application object

2007-06-06 Thread George Lu
Regards > > Dale Fraser > > > > http://dalefraser.blogspot.com > > > > *From:* cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *George Lu > *Sent:* Thursday, 7 June 2007 12:57 PM > *To:* cfaussie@googlegroups.com > *Subj

[cfaussie] Re: Application object

2007-06-06 Thread Dale Fraser
aussie@googlegroups.com Subject: [cfaussie] Re: Application object No, I've tried Andrew's method: and the same error again. On 07/06/07, George Lu &

[cfaussie] Re: Application object

2007-06-06 Thread Dale Fraser
ale Fraser <http://dalefraser.blogspot.com> http://dalefraser.blogspot.com From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of George Lu Sent: Thursday, 7 June 2007 12:51 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Application object Dale, I put the a

[cfaussie] Re: Application object

2007-06-06 Thread Duncan
I think its because you have variables.componentPath in the string to go find it. On application start this wont exist. Personally I would set this up as an application variable, then after that set up the object. On 6/7/07, George Lu <[EMAIL PROTECTED]> wrote: > No, I've tried Andrew's method:

[cfaussie] Re: Application object

2007-06-06 Thread George Lu
No, I've tried Andrew's method: and the same error again. On 07/06/07, George Lu <[EMAIL PROTECTED]> wrote: > > Dale, > > I put the application scope on top of the page then it work

[cfaussie] Re: Application object

2007-06-06 Thread George Lu
Dale, I put the application scope on top of the page then it works. Maybe I should do it as Andrew suggested. Thanks everyone. On 07/06/07, Dale Fraser <[EMAIL PROTECTED]> wrote: > > Are you sure it got created. > > > > Possibly added the OnApplicationStart code after the app was already > start

[cfaussie] Re: Application object

2007-06-06 Thread George Lu
Yes. So I have to put the object in onRequestStart or top of the page to init? On 07/06/07, AJ Mercer <[EMAIL PROTECTED]> wrote: > > had the application already been run before you added the create object? > If so, you will need to restart the application (or bounce the CF service) > so the OnAppl

[cfaussie] Re: Application object

2007-06-06 Thread Dale Fraser
Are you sure it got created. Possibly added the OnApplicationStart code after the app was already started. Dump the Application scope and see of the surveyDAO exists in it. Regards Dale Fraser http://dalefraser.blogspot.com From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECT

[cfaussie] Re: Application object

2007-06-06 Thread AJ Mercer
had the application already been run before you added the create object? If so, you will need to restart the application (or bounce the CF service) so the OnApplicationStart function gets executed On 6/7/07, George Lu <[EMAIL PROTECTED]> wrote: > > Hi, > > I create an object in Application.cfc and

[cfaussie] Re: Application object

2007-06-06 Thread Andrew Scott
onApplication will only start / excute when there is no application named with this.name. You may need to put a ?uppdateapp=1 in your url to reset the application in onRequestStart. Andrew Scott Senior Coldfusion Developer Aegeon Pty. Ltd. www.aeg