You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ra...@apache.org on 2009/05/13 20:00:25 UTC

svn commit: r774452 - /qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java

Author: rajith
Date: Wed May 13 18:00:25 2009
New Revision: 774452

URL: http://svn.apache.org/viewvc?rev=774452&view=rev
Log:
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.

Modified:
    qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java

Modified: qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java?rev=774452&r1=774451&r2=774452&view=diff
==============================================================================
--- qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java (original)
+++ qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/transport/Session.java Wed May 13 18:00:25 2009
@@ -41,6 +41,7 @@
 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 @@
     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



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org