You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by Rich Taylor <bh...@gmail.com> on 2007/10/24 19:27:58 UTC

Unused PartnerLink question

I have a PartnerLink defined in my process that is not used in any Invoke or
Receive activities.  Because it is not actually used (imagine a process that
is being developed incrementally), I don't bind that PartnerLink to an
endpoint (may or may not be known yet) in deploy.xml.    When I deploy I get
an exception:  "... Caused by: java.lang.IllegalArgumentException:
EchoService must be bound to an endpoint in deloy.xml"

>From the User Guide:
"Every partner link used with a <receive> activity must be matched with a
<provide> element, and every partnerLink used in an <invoke> activity must
be matched with an <invoke> element in deploy.xml (unless that partnerLink
has initializePartnerRole="false")."

I tried setting initializePartnerRole="false" and it doesn't seem to make a
difference.

My question is, should I be able to have an unused (in BPEL) and unbound (in
deploy.xml) PartnerLink in my process at all?  Is this a bug or expected
behavior?  I can write up an issue to either fix the code, or update the
user guide.  Just want to understand what type of issue it is first.

Second question: Is the dev list the right place to ask a question like
this, or should I have sent it to the user list?

Thanks,
Rich Taylor

Re: Unused PartnerLink question

Posted by Alex Boisvert <bo...@intalio.com>.
On 10/24/07, Rich Taylor <bh...@gmail.com> wrote:
>
> From the User Guide:
> "Every partner link used with a <receive> activity must be matched with a
> <provide> element, and every partnerLink used in an <invoke> activity must
> be matched with an <invoke> element in deploy.xml (unless that partnerLink
> has initializePartnerRole="false")."
>
> I tried setting initializePartnerRole="false" and it doesn't seem to make
> a
> difference.
>
> My question is, should I be able to have an unused (in BPEL) and unbound
> (in
> deploy.xml) PartnerLink in my process at all?  Is this a bug or expected
> behavior?  I can write up an issue to either fix the code, or update the
> user guide.  Just want to understand what type of issue it is first.


Yes, you should be able to if you set initializePartnerRole="false".  Sounds
like we have a bug here.  Would you mind opening another Jira issue for
this?  (i see you're already  on a roll this week ;)

Second question: Is the dev list the right place to ask a question like
> this, or should I have sent it to the user list?


If you suspect a bug, I think it's fair to post to -dev.

alex