I've created a setup which will basically allow you to do what you want. It 
will let you specify a template containing all the server variables you 
want loaded before any template is run. It uses the hack with site wide 
error handling to do the work. I'll detail it step by step in Nathan 
Stanfords newsletter. I owe him a paper. :)

At 01:00 PM 8/24/01, you wrote:
>The one time per minute solution has a flaw.
>
>If the user ever runs a web app that will legitimately change the values of
>the server variables being set with the per minute routine, then the user
>changes will be overwritten within the next minute.
>
>To make that solution work, the per minute routine would need to pull it's
>data from a datasource, and any user changes would be to the datasource
>itself.
>
>Admittedly, this situation is not likely, but one never knows.
>
>I think a better solution would be to create a new service that simply loads
>the required page, and make that service dependant on the CF services.  This
>way it would not run until CF is started.  There's tools out there (NT
>Resource Kits) that can run a batch file as a service.
>
>My two cents worth.
>
>Shawn Grover
>
>-----Original Message-----
>From: Paris Lundis [mailto:[EMAIL PROTECTED]]
>Sent: Friday, August 24, 2001 9:52 AM
>To: CF-Talk
>Subject: Re: load page when CF restarts
>
>
>Theoretically that should work... however, what if the app server
>hasn't started when that runs :)
>
>best thing would to embed the logic in the application.cfm file
>throughout your site(s)
>
>or the 1 time per minute scheduled approach would be better.. :)
>
>-paris
>
>[finding the future in the past, passing the future in the present]
>[connecting people, places and things]
>
>
>-----Original Message-----
>From: "tom muck" <[EMAIL PROTECTED]>
>Date: Fri, 24 Aug 2001 11:34:36 -0400
>Subject: Re: load page when CF restarts
>
> >
> > "Mike Amburn" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > I would like to store some variables in the Server scope so that
> > they're
> > > available to all applications on the server. Is there an automated
> > way
> > > to load a specific page when CF restarts?
> > >
> > > -mike
> >
> >
> > What about putting a command line in a bat file and placing it in
> > your
> > startup folder?  Theoretically it should work.
> >
> > c:\cfusion\bin\cfml.exe c:\inetpub\wwwroot\mystartpage.cfm
> >
> > tom
> >
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to