Updated Branches:
  refs/heads/ode-1.3.6.x ffccd41af -> baa67d531

ODE-952: fixing session handling bug. Thanks to Sathwik for the patch!

git-svn-id: https://svn.apache.org/repos/asf/ode/trunk@1225610 
13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/ode/repo
Commit: http://git-wip-us.apache.org/repos/asf/ode/commit/baa67d53
Tree: http://git-wip-us.apache.org/repos/asf/ode/tree/baa67d53
Diff: http://git-wip-us.apache.org/repos/asf/ode/diff/baa67d53

Branch: refs/heads/ode-1.3.6.x
Commit: baa67d5311b53a18dd3a54ac9b650d5055ed39f1
Parents: ffccd41
Author: Tammo van Lessen <[email protected]>
Authored: Thu Dec 29 18:17:09 2011 +0000
Committer: Tammo van Lessen <[email protected]>
Committed: Wed Sep 18 21:50:19 2013 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/ode/axis2/hooks/SessionInHandler.java  | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ode/blob/baa67d53/axis2/src/main/java/org/apache/ode/axis2/hooks/SessionInHandler.java
----------------------------------------------------------------------
diff --git 
a/axis2/src/main/java/org/apache/ode/axis2/hooks/SessionInHandler.java 
b/axis2/src/main/java/org/apache/ode/axis2/hooks/SessionInHandler.java
index 756bca4..8b450d7 100644
--- a/axis2/src/main/java/org/apache/ode/axis2/hooks/SessionInHandler.java
+++ b/axis2/src/main/java/org/apache/ode/axis2/hooks/SessionInHandler.java
@@ -75,7 +75,10 @@ public class SessionInHandler extends AbstractHandler {
             // Seeing if there's a callback, in case our client would be 
stateful as well
             OMElement callback = header.getFirstChildWithName(new 
QName(Namespaces.INTALIO_SESSION_NS, "callback"));
             if (callback != null) {
-                OMElement callbackSession = callback.getFirstChildWithName(new 
QName(Namespaces.INTALIO_SESSION_NS, "session"));
+                OMElement callbackSession = callback.getFirstChildWithName(new 
QName(Namespaces.ODE_SESSION_NS, "session"));
+                if(callbackSession==null){
+                    callbackSession = callback.getFirstChildWithName(new 
QName(Namespaces.INTALIO_SESSION_NS, "session"));
+                }
                 if (callbackSession != null) {
                     // Building an endpoint that represents our client (we're 
supposed to call him later on)
                     Document doc = DOMUtils.newDocument();

Reply via email to