You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by se...@apache.org on 2009/06/26 22:51:11 UTC

svn commit: r788868 - /ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/ODEServer.java

Author: seanahn
Date: Fri Jun 26 20:51:11 2009
New Revision: 788868

URL: http://svn.apache.org/viewvc?rev=788868&view=rev
Log:
clean up process on deployment of a new process

Modified:
    ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/ODEServer.java

Modified: ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/ODEServer.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/ODEServer.java?rev=788868&r1=788867&r2=788868&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/ODEServer.java (original)
+++ ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/ODEServer.java Fri Jun 26 20:51:11 2009
@@ -595,6 +595,17 @@
         __log.debug("Process store event: " + pse);
         ProcessConf pconf = _store.getProcessConfiguration(pse.pid);
         switch (pse.type) {
+            case DEPLOYED:
+                if (pconf != null) {
+                    /*
+                     * If and only if an old process exists with the same pid, the old process is cleaned up.
+                     * The following line is IMPORTANT and used for the case when the deployment and store 
+                     * do not have the process while the process itself exists in the BPEL_PROCESS table.
+                     * Notice that the new process is actually created on the 'ACTIVATED' event.
+                     */
+                    _bpelServer.cleanupProcess(pconf);
+                }
+                break;
             case ACTVIATED:
                 // bounce the process
                 _bpelServer.unregister(pse.pid);