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 | 7b2362e607303c191da39f1b7efc068e89928b90 (patch) | |
| tree | fb07e45c8ddae0f284e4601b59427b64b1143e79 /java/common/src | |
| parent | 740647fbfa747420f60783044a2e3f02d6fee4f4 (diff) | |
| download | qpid-python-7b2362e607303c191da39f1b7efc068e89928b90.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/qpid@774452 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/common/src')
| -rw-r--r-- | java/common/src/main/java/org/apache/qpid/transport/Session.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/java/common/src/main/java/org/apache/qpid/transport/Session.java b/java/common/src/main/java/org/apache/qpid/transport/Session.java index 3dca4fc44e..74150e043d 100644 --- a/java/common/src/main/java/org/apache/qpid/transport/Session.java +++ b/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 |
