diff options
| author | Rajith Muditha Attapattu <rajith@apache.org> | 2009-05-13 18:00:25 +0000 |
|---|---|---|
| committer | Rajith Muditha Attapattu <rajith@apache.org> | 2009-05-13 18:00:25 +0000 |
| commit | f66fd532f7045d5615b041ff2e386ed7c73492e8 (patch) | |
| tree | 3716a96ac2f599d2e1152e1b927158415bae4c74 /qpid/java | |
| parent | 4266fbd54c71fdcc0a6472e4d447798983a8967a (diff) | |
| download | qpid-python-f66fd532f7045d5615b041ff2e386ed7c73492e8.tar.gz | |
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
Diffstat (limited to 'qpid/java')
| -rw-r--r-- | qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java | 2 |
1 files changed, 2 insertions, 0 deletions
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 |
