/**
* Set success in the protocol selection phase.
*/
public synchronized void setProtocolSuccess() {
SessionInitializationMessage initMessage = null;
try {
initMessage = getInternalClient().waitForInitialization();
} catch (InterruptedException ie) {
// ignore -- treat as a null init message
}
if (initMessage == null) {
// no initialization message means there has been a login
// problem of some sort
setFailure("No initialization message.");
} else {
// we got an initialization message. Read the session id
// and then notify everyone that login has succeeded
setID(initMessage.getSessionID());
setUserID(initMessage.getUserID());
setSessionInitialized();
}
}