Skip to main content
Inspiring
October 13, 2010
Question

Checking is CF Server is alive

  • October 13, 2010
  • 1 reply
  • 1281 views

The first thing my Flash 8 app does is to call a cfc. If, for some reason,  the CF Server is not running, the app will "hang" waiting for a response. Is there some way for my app to tell whether the CF Server is running so that an appropriate message can be displayed?

This topic has been closed for replies.

1 reply

Legend
October 13, 2010

Hi Alan,

Not sure if this helps or not however should the CF Server always be alive? Maybe rather than touching the flash file perhaps sort the CF out so it is always ready to accept your requests.

Cheers, Carl.

Inspiring
October 13, 2010

Carl Type3: Thanks for that and of course you're right but therein lies another story. We're a small organisation working on tight budgets and using the gear we have. the Server is an XP box, the power environment is dodgy and we have a UPS but it's control is via the serial port an nobody can tell me how to configure this so that it will trigger XP to shutdown. Therefore, I've configured XP not to auto-start when power comes on because it tends to surge. When the XP is powered up manually, CF Server sometimes fails to start and requires a manual start. That's OK whilst I'm there but I'm going on leave and, as I'm chief cook & bottle-washer, the users will have to follow my written instructions to get it going again (shudder). It would just be helpful if the app could highlight the fact that CF Server is not running and avoid a lot of angst and frustration at the "hung" application and possible issue from trying to fix the wrong problem.

Legend
October 13, 2010

Hi Alan,

I feel your pain. Wish I knew more about scripting to advise you as per your original question but I am more CFadmin IIS person.

This may or may not help. Can you give some keys users a Favorite / Bookmark to the CFadmin page ...cfide/administrator/index.cfm. Give they know what up and down looks like that should help make a decision what to do next. Perhaps on the XP box a shortcut on the desktop to C:\ColdFusion9\bin\cfstart.bat - sometimes on low spec box I find if the service will not start from services.msc it will from the BAT file.

HTH, Carl.