Author: jeff.yuchang
Date: 2010-10-28 02:33:12 -0400 (Thu, 28 Oct 2010)
New Revision: 1072
Modified:
trunk/runtime/engine/src/main/java/org/jboss/soa/bpel/runtime/engine/ode/BPELEngineImpl.java
Log:
*RIFTSAW-238, only deactive endpoints if it didn't have any previous version of du.
Modified:
trunk/runtime/engine/src/main/java/org/jboss/soa/bpel/runtime/engine/ode/BPELEngineImpl.java
===================================================================
---
trunk/runtime/engine/src/main/java/org/jboss/soa/bpel/runtime/engine/ode/BPELEngineImpl.java 2010-10-28
06:29:00 UTC (rev 1071)
+++
trunk/runtime/engine/src/main/java/org/jboss/soa/bpel/runtime/engine/ode/BPELEngineImpl.java 2010-10-28
06:33:12 UTC (rev 1072)
@@ -46,6 +46,8 @@
import javax.transaction.*;
import javax.transaction.xa.XAResource;
+
+import java.util.List;
import java.util.StringTokenizer;
import java.util.concurrent.*;
@@ -631,7 +633,12 @@
break;
case DISABLED:
case UNDEPLOYED:
- _bpelServer.unregister(pse.pid);
+ List<String> retireProcess =
_store.getPreviousPackageVersions(pse.deploymentUnit);
+ boolean deactivateEndpoints = true;
+ if (retireProcess.size() > 0) {
+ deactivateEndpoints = false;
+ }
+ _bpelServer.unregister(pse.pid, deactivateEndpoints);
if (pconf != null) {
_bpelServer.cleanupProcess(pconf);
}
Show replies by date