Return-Path: Delivered-To: apmail-ode-commits-archive@www.apache.org Received: (qmail 24010 invoked from network); 24 Oct 2007 22:43:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Oct 2007 22:43:03 -0000 Received: (qmail 896 invoked by uid 500); 24 Oct 2007 22:42:50 -0000 Delivered-To: apmail-ode-commits-archive@ode.apache.org Received: (qmail 883 invoked by uid 500); 24 Oct 2007 22:42:50 -0000 Mailing-List: contact commits-help@ode.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ode.apache.org Delivered-To: mailing list commits@ode.apache.org Received: (qmail 873 invoked by uid 99); 24 Oct 2007 22:42:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Oct 2007 15:42:50 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Oct 2007 22:43:02 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 773EA1A9832; Wed, 24 Oct 2007 15:42:12 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r588063 - /ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java Date: Wed, 24 Oct 2007 22:42:12 -0000 To: commits@ode.apache.org From: mriou@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20071024224212.773EA1A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: mriou Date: Wed Oct 24 15:42:08 2007 New Revision: 588063 URL: http://svn.apache.org/viewvc?rev=588063&view=rev Log: ODE-203 Shouldn't complain when a initializePartnerLink=false isn't declared in deploy.xml. Modified: ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java Modified: ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java?rev=588063&r1=588062&r2=588063&view=diff ============================================================================== --- ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java (original) +++ ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelProcess.java Wed Oct 24 15:42:08 2007 @@ -419,8 +419,8 @@ if (pl.hasPartnerRole()) { Endpoint endpoint = _pconf.getInvokeEndpoints().get(pl.getName()); - if (endpoint == null) - throw new IllegalArgumentException(pl.getName() + " must be bound to an endpoint in deloy.xml"); + if (endpoint == null && pl.initializePartnerRole) + throw new IllegalArgumentException(pl.getName() + " must be bound to an endpoint in deploy.xml"); PartnerLinkPartnerRoleImpl partnerRole = new PartnerLinkPartnerRoleImpl(this, pl, endpoint); _partnerRoles.put(pl, partnerRole); } @@ -731,17 +731,20 @@ if (!_hydratedOnce) { for (PartnerLinkPartnerRoleImpl prole : _partnerRoles.values()) { - PartnerRoleChannel channel = _engine._contexts.bindingContext.createPartnerRoleChannel(_pid, - prole._plinkDef.partnerRolePortType, prole._initialPartner); - prole._channel = channel; - _partnerChannels.put(prole._initialPartner, prole._channel); - EndpointReference epr = channel.getInitialEndpointReference(); - if (epr != null) { - prole._initialEPR = epr; - _partnerEprs.put(prole._initialPartner, epr); + // Null for initializePartnerRole = false + if (prole._initialPartner != null) { + PartnerRoleChannel channel = _engine._contexts.bindingContext.createPartnerRoleChannel(_pid, + prole._plinkDef.partnerRolePortType, prole._initialPartner); + prole._channel = channel; + _partnerChannels.put(prole._initialPartner, prole._channel); + EndpointReference epr = channel.getInitialEndpointReference(); + if (epr != null) { + prole._initialEPR = epr; + _partnerEprs.put(prole._initialPartner, epr); + } + __log.debug("Activated " + _pid + " partnerrole " + prole.getPartnerLinkName() + ": EPR is " + + prole._initialEPR); } - __log.debug("Activated " + _pid + " partnerrole " + prole.getPartnerLinkName() + ": EPR is " - + prole._initialEPR); } _hydratedOnce = true; }