You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by mr...@apache.org on 2009/04/07 03:59:48 UTC

svn commit: r762594 - /ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelRuntimeContextImpl.java

Author: mriou
Date: Tue Apr  7 01:59:47 2009
New Revision: 762594

URL: http://svn.apache.org/viewvc?rev=762594&view=rev
Log:
Do not release the mex if the process is suspended. It will be needed when the process resumes.

Modified:
    ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelRuntimeContextImpl.java

Modified: ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelRuntimeContextImpl.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelRuntimeContextImpl.java?rev=762594&r1=762593&r2=762594&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelRuntimeContextImpl.java (original)
+++ ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelRuntimeContextImpl.java Tue Apr  7 01:59:47 2009
@@ -1390,8 +1390,10 @@
             for (String groupId : groupIds) {
 	            correlator.removeRoutes(groupId, _dao);
             }
-            
-            mexdao.release(true);
+
+            // Do not release yet if the process is suspended, the mex will be used again
+            if (_dao.getState() != ProcessState.STATE_SUSPENDED)
+                mexdao.release(true);
         } else {
             __log.debug("MatcherEvent handling: nothing to do, no matching message in DB");