msg.setOrignalSessionID(sessionId);
msg.setBackupSessionID(newSessionID);
Context context = request.getContext();
- msg.setContextPath(context.getPath());
+ msg.setContextName(context.getName());
msg.setHost(context.getParent().getName());
c.send(msg);
}
"jvmRoute.receiveMessage.sessionIDChanged", sessionmsg
.getOrignalSessionID(), sessionmsg
.getBackupSessionID(), sessionmsg
- .getContextPath()));
+ .getContextName()));
Container container = getCluster().getContainer();
Container host = null ;
if(container instanceof Engine) {
}
if (host != null) {
Context context = (Context) host.findChild(sessionmsg
- .getContextPath());
+ .getContextName());
if (context != null) {
try {
Session session = context.getManager().findSession(
} else if (log.isInfoEnabled())
log.info(sm.getString("jvmRoute.lostSession",
sessionmsg.getOrignalSessionID(),
- sessionmsg.getContextPath()));
+ sessionmsg.getContextName()));
} catch (IOException e) {
log.error(e);
}
} else if (log.isErrorEnabled())
log.error(sm.getString("jvmRoute.contextNotFound",
- sessionmsg.getContextPath(), ((StandardEngine) host
+ sessionmsg.getContextName(), ((StandardEngine) host
.getParent()).getJvmRoute()));
} else if (log.isErrorEnabled())
- log.error(sm.getString("jvmRoute.hostNotFound", sessionmsg.getContextPath()));
+ log.error(sm.getString("jvmRoute.hostNotFound", sessionmsg.getContextName()));
}
return;
}
private String backupSessionID;
private String host ;
- private String contextPath;
+ private String contextName;
@Override
public String getUniqueId() {
result.append("#-#");
result.append(getHost());
result.append("#-#");
- result.append(getContextPath());
+ result.append(getContextName());
result.append("#-#");
result.append(getMessageNumber());
result.append("#-#");
}
/**
- * @return Returns the contextPath.
+ * @return Returns the context name.
*/
- public String getContextPath() {
- return contextPath;
+ public String getContextName() {
+ return contextName;
}
/**
- * @param contextPath The contextPath to set.
+ * @param contextName The context name to set.
*/
- public void setContextPath(String contextPath) {
- this.contextPath = contextPath;
+ public void setContextName(String contextName) {
+ this.contextName = contextName;
}
/**
* @return Returns the messageNumber.
@Override
public String toString() {
- return "SESSIONID-UPDATE#" + getHost() + "." + getContextPath() + "#" + getOrignalSessionID() + ":" + getBackupSessionID();
+ return "SESSIONID-UPDATE#" + getHost() + "." + getContextName() + "#" + getOrignalSessionID() + ":" + getBackupSessionID();
}
}