[Users] EIP dynamic-router
nguyen
petals-components at ebmwebsourcing.com
Wed Mar 16 10:25:13 CET 2011
Hi,
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.
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.
But when I deployed and tested the pattern in the Petals sample client, I got the error
Code:
Consumes sections for the pattern DynamicRouter]]></faultstring><faultactor>http://exemple.eip.acoss.fr/dynamic-router/</faultactor><detail><stackTrace><![CDATA[org.ow2.petals.component.framework.api.exception.SOAP11FaultServerException: PEtALSCDKException - The Service Unit must define (numberOfConditions+2) Consumes sections for the pattern DynamicRouter
at org.ow2.petals.component.framework.listener.MessageExchangeProcessor.processInOutAsProvider(MessageExchangeProcessor.java:537)
at org.ow2.petals.component.framework.listener.MessageExchangeProcessor.processAsProvider(MessageExchangeProcessor.java:421)
at org.ow2.petals.component.framework.listener.MessageExchangeProcessor.process(MessageExchangeProcessor.java:308)
at org.ow2.petals.component.framework.listener.MessageExchangeProcessor.run(MessageExchangeProcessor.java:145)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
]]></stackTrace></detail></soapenv:Fault>
This is my SU jbi.xml file
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated JBI descriptor for the PEtALS component "petals-se-eip" (EIP), version 2.3 -->
<jbi:jbi version="1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jbi="http://java.sun.com/xml/ns/jbi"
xmlns:eip="http://petals.ow2.org/components/eip/version-2.3"
xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-4.0"
xmlns:generatedNs="http://exemple.eip.acoss.fr/dynamic-router/">
<!-- Import a Service into PEtALS or Expose a PEtALS Service => use a BC. -->
<jbi:services binding-component="false">
<!-- Import a Service into PEtALS => provides a Service. -->
<jbi:provides
interface-name="generatedNs:dynamic-router"
service-name="generatedNs:dynamic-routerService"
endpoint-name="dynamic-routerServiceEndpoint">
<!-- CDK specific elements -->
<petalsCDK:wsdl>dynamic-router.wsdl</petalsCDK:wsdl>
<!-- Component specific elements -->
<eip:eip>dynamic-router</eip:eip>
<eip:dynamic-router-condition>count(//*)>0</eip:dynamic-router-condition>
</jbi:provides>
<!-- Consumed project 1 ( Service to Test ) -->
<jbi:consumes
interface-name="iConsumeNsPrefix:XC17"
service-name="iConsumeNsPrefix:XC17Service"
endpoint-name="xc17"
xmlns:iConsumeNsPrefix="http://xc17.snv2sxml.technical.services.esb.cirso.fr/1.0">
<!-- CK specific fields for this consume -->
<petalsCDK:mep>InOut</petalsCDK:mep>
</jbi:consumes>
<!-- Consumed project 2 ( condition = count(//*)>0 ) -->
<jbi:consumes
interface-name="iConsumeNsPrefix:XC18"
service-name="iConsumeNsPrefix:XC18Service"
endpoint-name="xc18"
xmlns:iConsumeNsPrefix="http://xc18.snv2sxml.technical.services.esb.cirso.fr/1.0">
<!-- CK specific fields for this consume -->
<petalsCDK:mep>InOut</petalsCDK:mep>
</jbi:consumes>
<!-- Consumed project 3 ( Default ) -->
<jbi:consumes
interface-name="iConsumeNsPrefix:XC21"
service-name="iConsumeNsPrefix:XC21Service"
endpoint-name="xc21"
xmlns:iConsumeNsPrefix="http://xc21.snv2sxml.technical.services.esb.cirso.fr/1.0">
<!-- CK specific fields for this consume -->
<petalsCDK:mep>InOut</petalsCDK:mep>
</jbi:consumes>
</jbi:services>
</jbi:jbi>
Thank in advance
-------------------- m2f --------------------
Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=274#274
-------------------- m2f --------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/users/attachments/20110316/a7a805b1/attachment.htm>
More information about the Users
mailing list