<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<style type="text/css">
<!--

/*
  The original subSilver Theme for phpBB version 2+
  Created by subBlue design
  http://www.subBlue.com

  NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2
  theme administration centre. When you have finalised your style you could cut the final CSS code
  and place it in an external file, deleting this section to save bandwidth.
*/


 /* General page style. The scroll bar colours only visible in IE5.5+ */
body {
        background-color: #E5E5E5;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 11;
        color: #000000;
}

/* General font families for common tags */
font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif }
p, td                { font-size : 11; color : #000000; }
a:link,a:active,a:visited { color : #006699; }
a:hover                { text-decoration: underline; color : #DD6900; }
hr        { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;}
h1,h2                { font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; font-size : 22px; font-weight : bold; text-decoration : none; line-height : 120%; color : #000000;}


/* This is the border line & background colour round the entire page */
.bodyline        { background-color: #FFFFFF; border: 1px #98AAB1 solid; }


/* General text */
.gen { font-size : 12px; }
.genmed { font-size : 11px; }
.gensmall { font-size : 10px; line-height: 12px}
.gen,.genmed,.gensmall { color : #000000; }
a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover        { color: #DD6900; text-decoration: underline; }


/* Forum title: Text and link to the forums used in: index.php */
.forumlink                { font-weight: bold; font-size: 12px; color : #006699; }
a.forumlink         { text-decoration: none; color : #006699; }
a.forumlink:hover{ text-decoration: underline; color : #DD6900; }


/* The content of the posts (body of text) */
.postbody { font-size : 12px; line-height: 18px}
a.postlink:link        { text-decoration: none; color : #006699 }
a.postlink:visited { text-decoration: none; color : #5493B4; }
a.postlink:hover { text-decoration: underline; color : #DD6900}


/* Quote & Code blocks */
.code {
        font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600;
        background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
        border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}

.quote {
        font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%;
        background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
        border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}

-->
</style>
</head>
        <body>

        <div class="postbody">Hi,<br />
<br />
I use the petals-se-eip-2.2.1 component in the petals-quickstart-2.2 platform. I would like test the EIP dynamic-router pattern.<br />
The Petals UseEIP Eclipse wizard for the dynamic-router hasn't genered the <eip:dynamic-router-condition> clauses in the SU jbi.xml created. I have to insert the <eip:dynamic-router-condition> conditions manually in the jbi.xml.<br />
But when I deployed and tested the pattern in the Petals sample client, I got the error <br />
</span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>           <td><span class="genmed"><b>Code:</b></span></td>        </tr>        <tr>          <td class="code"><br />
Consumes sections for the pattern DynamicRouter&#93;&#93;></faultstring><faultactor>http&#58;//exemple.eip.acoss.fr/dynamic-router/</faultactor><detail><stackTrace><!&#91;CDATA&#91;org.ow2.petals.component.framework.api.exception.SOAP11FaultServerException&#58; PEtALSCDKException - The Service Unit must define &#40;numberOfConditions+2&#41; Consumes sections for the pattern DynamicRouter<br />
<br />
&nbsp; &nbsp;at org.ow2.petals.component.framework.listener.MessageExchangeProcessor.processInOutAsProvider&#40;MessageExchangeProcessor.java&#58;537&#41;<br />
<br />
&nbsp; &nbsp;at org.ow2.petals.component.framework.listener.MessageExchangeProcessor.processAsProvider&#40;MessageExchangeProcessor.java&#58;421&#41;<br />
<br />
&nbsp; &nbsp;at org.ow2.petals.component.framework.listener.MessageExchangeProcessor.process&#40;MessageExchangeProcessor.java&#58;308&#41;<br />
<br />
&nbsp; &nbsp;at org.ow2.petals.component.framework.listener.MessageExchangeProcessor.run&#40;MessageExchangeProcessor.java&#58;145&#41;<br />
<br />
&nbsp; &nbsp;at java.util.concurrent.ThreadPoolExecutor$Worker.runTask&#40;Unknown Source&#41;<br />
<br />
&nbsp; &nbsp;at java.util.concurrent.ThreadPoolExecutor$Worker.run&#40;Unknown Source&#41;<br />
<br />
&nbsp; &nbsp;at java.lang.Thread.run&#40;Unknown Source&#41;<br />
<br />
&#93;&#93;></stackTrace></detail></soapenv&#58;Fault><br />
</td>        </tr></table><span class="postbody"><br />
<br />
This is my SU jbi.xml file<br />
</span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>           <td><span class="genmed"><b>Code:</b></span></td>        </tr>        <tr>          <td class="code"><br />
<?xml version="1.0" encoding="UTF-8"?><br />
<!-- Generated JBI descriptor for the PEtALS component "petals-se-eip" &#40;EIP&#41;, version 2.3 --><br />
<jbi&#58;jbi version="1.0" <br />
&nbsp; &nbsp;xmlns&#58;xsi="http&#58;//www.w3.org/2001/XMLSchema-instance"<br />
&nbsp; &nbsp;xmlns&#58;jbi="http&#58;//java.sun.com/xml/ns/jbi"<br />
&nbsp; &nbsp;xmlns&#58;eip="http&#58;//petals.ow2.org/components/eip/version-2.3"<br />
&nbsp; &nbsp;xmlns&#58;petalsCDK="http&#58;//petals.ow2.org/components/extensions/version-4.0"<br />
&nbsp; &nbsp;xmlns&#58;generatedNs="http&#58;//exemple.eip.acoss.fr/dynamic-router/"><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp;<!-- Import a Service into PEtALS or Expose a PEtALS Service => use a BC. --><br />
&nbsp; &nbsp;<jbi&#58;services binding-component="false"><br />
&nbsp; &nbsp;&nbsp; &nbsp;<!-- Import a Service into PEtALS => provides a Service. --><br />
&nbsp; &nbsp;&nbsp; &nbsp;<jbi&#58;provides &nbsp; &nbsp;&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;interface-name="generatedNs&#58;dynamic-router"<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;service-name="generatedNs&#58;dynamic-routerService"<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;endpoint-name="dynamic-routerServiceEndpoint"><br />
&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<!-- CDK specific elements --><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<petalsCDK&#58;wsdl>dynamic-router.wsdl</petalsCDK&#58;wsdl><br />
&nbsp; &nbsp;&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<!-- Component specific elements -->&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<eip&#58;eip>dynamic-router</eip&#58;eip><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<eip&#58;dynamic-router-condition>count&#40;//*&#41;>0</eip&#58;dynamic-router-condition><br />
&nbsp; &nbsp;&nbsp; &nbsp;</jbi&#58;provides><br />
&nbsp; &nbsp;&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;<!-- Consumed project 1 &#40; Service to Test &#41; --><br />
&nbsp; &nbsp;&nbsp; &nbsp;<jbi&#58;consumes<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;interface-name="iConsumeNsPrefix&#58;XC17"<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;service-name="iConsumeNsPrefix&#58;XC17Service"<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;endpoint-name="xc17"<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;xmlns&#58;iConsumeNsPrefix="http&#58;//xc17.snv2sxml.technical.services.esb.cirso.fr/1.0"><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<!-- CK specific fields for this consume --><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<petalsCDK&#58;mep>InOut</petalsCDK&#58;mep><br />
&nbsp; &nbsp;&nbsp; &nbsp;</jbi&#58;consumes><br />
&nbsp; &nbsp;&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;<!-- Consumed project 2 &#40; condition = count&#40;//*&#41;>0 &#41; --><br />
&nbsp; &nbsp;&nbsp; &nbsp;<jbi&#58;consumes<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;interface-name="iConsumeNsPrefix&#58;XC18"<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;service-name="iConsumeNsPrefix&#58;XC18Service"<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;endpoint-name="xc18"<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;xmlns&#58;iConsumeNsPrefix="http&#58;//xc18.snv2sxml.technical.services.esb.cirso.fr/1.0"><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<!-- CK specific fields for this consume --><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<petalsCDK&#58;mep>InOut</petalsCDK&#58;mep><br />
&nbsp; &nbsp;&nbsp; &nbsp;</jbi&#58;consumes><br />
&nbsp; &nbsp;&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;<!-- Consumed project 3 &#40; Default &#41; --><br />
&nbsp; &nbsp;&nbsp; &nbsp;<jbi&#58;consumes<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;interface-name="iConsumeNsPrefix&#58;XC21"<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;service-name="iConsumeNsPrefix&#58;XC21Service"<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;endpoint-name="xc21"<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;xmlns&#58;iConsumeNsPrefix="http&#58;//xc21.snv2sxml.technical.services.esb.cirso.fr/1.0"><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<!-- CK specific fields for this consume --><br />
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<petalsCDK&#58;mep>InOut</petalsCDK&#58;mep><br />
&nbsp; &nbsp;&nbsp; &nbsp;</jbi&#58;consumes><br />
&nbsp; &nbsp;&nbsp; &nbsp;<br />
&nbsp; &nbsp;</jbi&#58;services><br />
</jbi&#58;jbi><br />
</td>        </tr></table><span class="postbody"><br />
<br />
Thank in advance</div>
        <br /><div class="gensmall"><br />
<br />
<br />
-------------------- m2f --------------------<br />
<br />
Read this forum topic online here:<br />
<a href="http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=274#274" target="_blank">http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=274#274</a><br />
<br />
-------------------- m2f --------------------</div>
        </body>
</html>