- see footer for list info -<
The JVM ???
From my blog:
locales in coldfusion and
windows<http://www.succor.co.uk/index.cfm/2006/4/7/locales-in-coldfusion-and-windows>
Posted
At : April 7, 2006 8:46 AM | Posted By : quiksilv
Related Categories: Coldfusion<http://www.succor.co.uk/index.cfm/Coldfusion>
Greg Stewart <http://gregs.tcias.co.uk/> stumbled across this annoying issue
with CFMX, recycling the
server<http://www.succor.co.uk/index.cfm/2006/4/7/locales-in-coldfusion-and-windows#>and
locales.
Whatever locale is assigned to your Windows profile this is the one CF will
use when re-starting. So if you are signed on with UK local setting, if you
restart CF then that will be the default locale. This has an impact on the
JVM and many of local specific functions that CF has. So the next time you
log on to a remote
server<http://www.succor.co.uk/index.cfm/2006/4/7/locales-in-coldfusion-and-windows#>have
a quick look at what your local is set to and if it's not set to your
local country, then change it quickly

On 01/11/06, Lee Fortnam <[EMAIL PROTECTED]> wrote:

>- see footer for list info -<
Hi All,

Have an interesting problem, put a script together which monitors a remote
service the other week, effectively, it checks a site page for a specific
piece of text, depending on result, i.e. http status not 200, text not
found, text found etc, it sets a cfschedule to repeat the check in 5 mins
time (if all is okay) or 1 min time (if there is a failure).

The system also records the uptime in increments of 5 mins and down time
in
increments of 1 min for reporting via text message to a give mobile
number(s) with a appropriate message.

Messages on text come through something like this:

'Site sportfocus01 is up having been down last check (down for 2 mins).'
'Site sportfocus01 is down (Status Not 200) having been up last check
(stable for 3615 mins).'
'Site sportfocus01 is down (text not found) having been up last check
(stable for 4765 mins).'

Etc.

In order to reset the schedule, I am using the following command:

<cfschedule action="update" task="#attributes.ScheduleName#"
url="#address#"
interval="once" operation="HTTPRequest"
startdate="#DateFormat(ScheduleRunTime,"DD/MM/YYYY")#"
starttime="#TimeFormat(ScheduleRunTime,"HH:MM:SS")#">

Address and schedule name are passed as URL vars as are a host of other
information such as status last check, status time etc, full URL looks
something like this:


http://mysite.com/index.cfm?fuseaction=system.CheckRemoteServices&URL2Check=

http://somewebsite.com&RemoteURLsText=OK&PreviousStatus=OK&OKFrequency=5&Fai
lureFrequency=1&ScheduleName=wdu376
checker&MSISDN2Notify=000000,000001,000002&StatusDuration=1255

This morning I encountered a problem where the date changed from 31/10 to
01/11 in which case the schedule suddenly thought it should be run on 11th
January with the american date format.

I have tried LSDateFormat, setting the SetLocale("English (UK)") etc but
to
no avail, any ideas.

Lee Fortnam


_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help
-<




--
Nick Tong

web:         http://talkwebsolutions.co.uk
blog:         http://succor.co.uk
f..works:    http://cfframeworks.com
short urls:  http://wapurl.co.uk
green link: http://wapurl.co.uk/?4Z2YDLX
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
- Lists hosted by www.Gradwell.com -<
- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to