Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Checking is CF Server is alive

Explorer ,
Oct 12, 2010 Oct 12, 2010

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?

TOPICS
Flash integration
1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Oct 12, 2010 Oct 12, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 12, 2010 Oct 12, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Oct 13, 2010 Oct 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Oct 13, 2010 Oct 13, 2010

Nothing has come to mind that you can put INTO your flex to cfc code.

But something we do here is an external 'heart-beat' monitor.  We have a piece of code (Perl in our case) that just hits the ColdFusion Administrator page.  If the proper HTML for the Administrator login is returned, we know CF is reasonable alive and kicking.

May some idea along those lines might work for you.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 13, 2010 Oct 13, 2010
LATEST

Ilssac, good thinking and thank you! I have taken several "keep the CF Server

alive" actions:

O Altered the Services profile to try to start the service 3 times, several

minutes apart

O Working on getting the UPS correctly configured

I have also purchased a process monitor that will email someone if the service

is not running.

Regard,

Alan.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources