// resets the object counter, so a different object is registered under the id of the old
// object. Remoting then times out the old connection and dereigsters the new object which is
// registered under the same id.
// See http://jira.jboss.com/jira/browse/JBMESSAGING-812
AdvisedSupport advised = (AdvisedSupport)(targets.get(id));
if (advised == null)
{
// This can happen due to http://jira.jboss.com/jira/browse/JBMESSAGING-812
log.warn("Cannot find object with id " + id + " to register");
return false;
}
if (advised.getEndpoint() != endpoint)
{
log.warn("The object you are trying to deregister is not the same as the one you registered!");
return false;
}
else