Skip to main content

Problem:

  • Product Name: Borland Application Server
  • Product Version; 6.5 and 6.6
  • Product Component: BMSH
  • Platform/OS Version: all supported versions
  • JDK/Compiler Version: all supported versions

How to ping OTS from BMSH?

Resolution:

Using getState() method on an OTS managed object may not always provide the up-to-date state of the OTS. OTS will return "running" state if the process of OTS is existing. When all threads of OTS are blocked under some circumstances, calling getState() on OTS managed object would return running state. However, OTS can no longer make any response and it need to be restarted. See the "monitorOTS.js (attached)" on how to call getState() method on OTS managed object.

It may not be possible to ping OTS directly from BMSH script. However, monitorOTS.js can be enhanced to check the state of an OTS pinger instead of OTS managed object itself. In that case you need to create an OTS pinger managed object to ping the OTS. If the OTS pinger MO is down then you may proceed to shutdown the OTS and bring up the backup OTS.


Author: Mathius Allo
Date : 16/06/2007

Related documents:
  • monitorOTS.zip

Old KB# 15203

#OTS
#bmsh
#BorlandAppServer
#Security
#VisiBroker