*
* @return true if connection is alive
*/
public synchronized boolean isOpen ()
{
EnquireLink request = new EnquireLink ();
try {
synchronized (mySession) {
mySession.enquireLink (request);
}
myLog.debug ("isOpen - pdu = {}", request.debugString ());
// not sure if this is correct
return true;
}
catch (ValueNotSetException exc) {
myLog.error ("isOpen - value not set", exc);