You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by ka...@apache.org on 2009/03/06 20:46:58 UTC
svn commit: r751049 -
/ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java
Author: karthick
Date: Fri Mar 6 19:46:58 2009
New Revision: 751049
URL: http://svn.apache.org/viewvc?rev=751049&view=rev
Log:
Initialize maps upon process hydration.
Modified:
ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java
Modified: ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java?rev=751049&r1=751048&r2=751049&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java (original)
+++ ode/branches/APACHE_ODE_1.X/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java Fri Mar 6 19:46:58 2009
@@ -852,35 +852,26 @@
_oprocess.dehydrate();
_oprocess = null;
}
- if (_partnerRoles != null) {
- _partnerRoles.clear();
- _partnerRoles = null;
- }
if (_myRoles != null) {
_myRoles.clear();
- _myRoles = null;
}
if (_endpointToMyRoleMap != null) {
_endpointToMyRoleMap.clear();
- _endpointToMyRoleMap = null;
}
- if (_replacementMap != null) {
- _replacementMap = null;
- _expLangRuntimeRegistry = null;
+ if (_myEprs != null) {
+ _myEprs.clear();
}
- _myEprs = null;
if (_partnerChannels != null) {
_partnerChannels.clear();
- _partnerChannels = null;
}
if (_partnerEprs != null) {
_partnerEprs.clear();
- _partnerEprs = null;
}
if (_partnerRoles != null) {
_partnerRoles.clear();
- _partnerRoles = null;
}
+ _replacementMap = null;
+ _expLangRuntimeRegistry = null;
}
private void doHydrate() {
@@ -899,6 +890,25 @@
throw new BpelEngineException(errmsg, e);
}
+ if (_partnerRoles == null) {
+ _partnerRoles = new HashMap<OPartnerLink, PartnerLinkPartnerRoleImpl>();
+ }
+ if (_myRoles == null) {
+ _myRoles = new HashMap<OPartnerLink, PartnerLinkMyRoleImpl>();
+ }
+ if (_endpointToMyRoleMap == null) {
+ _endpointToMyRoleMap = new HashMap<PartnerLinkMyRoleImpl, Endpoint>();
+ }
+ if (_myEprs == null) {
+ _myEprs = new HashMap<Endpoint, EndpointReference>();
+ }
+ if (_partnerChannels == null) {
+ _partnerChannels = new HashMap<Endpoint, PartnerRoleChannel>();
+ }
+ if (_partnerEprs == null) {
+ _partnerEprs = new HashMap<Endpoint, EndpointReference>();
+ }
+
_replacementMap = new ReplacementMapImpl(_oprocess);
// Create an expression language registry for this process