Check Application Responding

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Check Application Responding

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:54 pm

by Stephen >> Wed, 17 Aug 2005 4:04:10 GMT

Hi,
We have status bar across the top of our application that tells the user if various components of the system are running OK.
We have a background job processor which is one of these status icons. Currently I just check if the application is running by using a version of the app.isAppRunning method (except it checks each node not just the node it is called from).
It the app is running I show one icon - if its not I show another icon.

However I am wanting it to be a bit smarter than that, and actually check if the application is responding, not if it is just running. If the application has hung for whatever reason, I want to pick up on this too.

I presume something like that must be built into CardSchema so they can monitor if the WebSessions have crashed for example - is it something we can access or is it hidden away so only hosted JadeCare systems can use?

Otherwise is there another way to achieve this?
I would rather use notifications too, rather than having to run a continuous timer on each app doing some sort of checking every 5 minutes or so, but a notification on what...?? If the app has crashed, then it can't update anything that will cause a notification.

Thanks in advance
Stephen

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Check Application Responding

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:54 pm

by cnwjhp1 >> Wed, 17 Aug 2005 5:56:47 GMT

You can use a notification on the other app's Process object. We use that sometimes to detect when it goes away (delete event). And you could raise a notification on the same object periodically, and if that app doesn't send one back within a particular timeframe, it's not responding.


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 11 guests