From f66fd532f7045d5615b041ff2e386ed7c73492e8 Mon Sep 17 00:00:00 2001 From: Rajith Muditha Attapattu Date: Wed, 13 May 2009 18:00:25 +0000 Subject: This is a fix for QPID-1857 We now create a new session id, instead of reusing the same when it tries to attach the session after failover. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@774452 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qpid/java/common/src') diff --git a/qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java b/qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java index 3dca4fc44e..74150e043d 100644 --- a/qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java +++ b/qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java @@ -41,6 +41,7 @@ import static org.apache.qpid.transport.Session.State.*; import static org.apache.qpid.transport.util.Functions.*; import static org.apache.qpid.util.Serial.*; import static org.apache.qpid.util.Strings.*; +import java.util.UUID; /** * Session @@ -225,6 +226,7 @@ public class Session extends SessionInvoker void attach() { initReceiver(); + name = new Binary(toUTF8(UUID.randomUUID().toString())); sessionAttach(name.getBytes()); // XXX: when the broker and client support full session // recovery we should use expiry as the requested timeout -- cgit v1.2.1