cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r427405 - /incubator/cayenne/main/branches/STABLE-1.2/cayenne/cayenne-java/src/cayenne/java/org/objectstyle/cayenne/remote/RemoteSession.java
Date Tue, 01 Aug 2006 02:14:19 GMT
Author: aadamchik
Date: Mon Jul 31 19:14:19 2006
New Revision: 427405

URL: http://svn.apache.org/viewvc?rev=427405&view=rev
Log:
CAY-617

Modified:
    incubator/cayenne/main/branches/STABLE-1.2/cayenne/cayenne-java/src/cayenne/java/org/objectstyle/cayenne/remote/RemoteSession.java

Modified: incubator/cayenne/main/branches/STABLE-1.2/cayenne/cayenne-java/src/cayenne/java/org/objectstyle/cayenne/remote/RemoteSession.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/branches/STABLE-1.2/cayenne/cayenne-java/src/cayenne/java/org/objectstyle/cayenne/remote/RemoteSession.java?rev=427405&r1=427404&r2=427405&view=diff
==============================================================================
--- incubator/cayenne/main/branches/STABLE-1.2/cayenne/cayenne-java/src/cayenne/java/org/objectstyle/cayenne/remote/RemoteSession.java
(original)
+++ incubator/cayenne/main/branches/STABLE-1.2/cayenne/cayenne-java/src/cayenne/java/org/objectstyle/cayenne/remote/RemoteSession.java
Mon Jul 31 19:14:19 2006
@@ -121,6 +121,9 @@
         return new HashCodeBuilder(71, 5).append(sessionId).toHashCode();
     }
 
+    /**
+     * Returns server session id. This is often the same as HttpSession id.
+     */
     public String getSessionId() {
         return sessionId;
     }
@@ -160,7 +163,8 @@
                     ? eventBridgeParameters
                     : Collections.EMPTY_MAP;
 
-            return factory.createEventBridge(SUBJECTS, sessionId, parameters);
+            // must use "name", not the sessionId as an external subject for the event bridge
+            return factory.createEventBridge(SUBJECTS, name, parameters);
         }
         catch (Exception ex) {
             throw new CayenneRuntimeException("Error creating EventBridge.", ex);



Mime
View raw message