Commit f833ed97 authored by Andre Freyssinet's avatar Andre Freyssinet

JORAM-323: Handling of temporary destinations (usage of DMQ on deletion).

JORAM-330: Fix potential issues with serialization (serialVersionUID).
parent 598ad3f1
......@@ -385,6 +385,9 @@ public final class UserAgent extends Agent implements UserAgentMBean, ProxyAgent
* This kind of SharedCts (LinkedHashMap) is well-suited to building LRU caches.
*/
class SharedCtx extends LinkedHashMap<Integer, Integer> {
/** define serialVersionUID for interoperability, fix with 5.15.0 value */
private static final long serialVersionUID = 4072986403472633413L;
SharedCtx(int ctxId, int requestId) {
super(100, 1.1f, true);
put(ctxId, requestId);
......@@ -2302,7 +2305,9 @@ public final class UserAgent extends Agent implements UserAgentMBean, ProxyAgent
private void deleteTemporaryDestination(AgentId destId) {
sendNot(destId, new DeleteNot());
AdminTopic.unregisterDest(destId.toString());
// JORAM-323: Do not longer remove destination from registry, the destination will be
// unregistered during deletion.
// AdminTopic.unregisterDest(destId.toString());
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment