/**
* Check server.
* @see <a href="http://www.xmlBlaster.org/xmlBlaster/src/java/org/xmlBlaster/protocol/corba/xmlBlaster.idl" target="others">CORBA xmlBlaster.idl</a>
*/
public String ping(String qos) throws XmlBlasterException {
SocketExecutor receiver = getCbReceiver();
if (receiver == null) {
//if (this.useRemoteLoginAsTunnel)
// throw new XmlBlasterException(glob, ErrorCode.COMMUNICATION_NOCONNECTION, ME, "No connection tunnel");
return Constants.RET_OK; // fake a return for ping on startup
/*
// SocketCallbackImpl.java must be instantiated first
//throw new XmlBlasterException(glob, ErrorCode.INTERNAL_NOTIMPLEMENTED, ME,
// "Sorry, SOCKET callback handler is not available but is necessary if client connection is of type 'SOCKET', please do not mix 'SOCKET' with other protocols in the same client connection.");
log.info(ME, "Creating default callback server type=" + getType());
I_CallbackServer server = glob.getCbServerPluginManager().getPlugin(getType(), getVersion());
server.initialize(this.glob, getLoginName(), null);
// NOTE: This happens only if the client has no callback configured, we create a faked one here (as the SOCKET plugin needs it)
*/
}
return receiver.ping(qos);
}