[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Ping in XmlBlasterConnection
Hi,
I am a little confused over the ping method in XmlBlasterConnection. I
would like to use it to check connections, but it does not return
anything and have no Exception in the signature.
Looking at the code it seems as if it should throw an exception, but
that it will never do that:
public void ping()
{
if (isReconnectPolling)
return;
try {
driver.ping();
if (Log.CALL) Log.call(ME, "ping success() ...");
return;
} catch(ConnectionException e) {
if (Log.TRACE) Log.trace(ME, "ping failed, xmlBlaster seems to be down, try to reactivate connection ...");
try {
handleConnectionException(e);
} catch(XmlBlasterException ep) {
if (Log.TRACE) Log.trace(ME, "Exception in ping! " + ep.reason);
}
}
return ; // never reached, there is always an exception thrown
}
Is this a bug or feature ;-)
//Peter
--
------------------------------------------------------------
Peter Antman Technology in Media, Box 34105 100 26 Stockholm
Systems Architect WWW: http://www.tim.se
Email: pra at annons.dn.se WWW: http://www.backsource.org
Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942
------------------------------------------------------------