EIP dynamic-router

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

EIP dynamic-router

rnaudin-3
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 clauses in the SU jbi.xml created. I have to insert the 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]]>http://exemple.eip.acoss.fr/dynamic-router/
   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)

]]>



This is my SU jbi.xml file
Code:



   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/">
   
   
   
      
                interface-name="generatedNs:dynamic-router"
         service-name="generatedNs:dynamic-routerService"
         endpoint-name="dynamic-routerServiceEndpoint">
   
         
         dynamic-router.wsdl
      
            
         dynamic-router
         count(//*)>0
      
      
      
                interface-name="iConsumeNsPrefix:XC17"
         service-name="iConsumeNsPrefix:XC17Service"
         endpoint-name="xc17"
         xmlns:iConsumeNsPrefix="http://xc17.snv2sxml.technical.services.esb.cirso.fr/1.0">
         
         
         InOut
      
      
      
                interface-name="iConsumeNsPrefix:XC18"
         service-name="iConsumeNsPrefix:XC18Service"
         endpoint-name="xc18"
         xmlns:iConsumeNsPrefix="http://xc18.snv2sxml.technical.services.esb.cirso.fr/1.0">
         
         
         InOut
      
      
      
                interface-name="iConsumeNsPrefix:XC21"
         service-name="iConsumeNsPrefix:XC21Service"
         endpoint-name="xc21"
         xmlns:iConsumeNsPrefix="http://xc21.snv2sxml.technical.services.esb.cirso.fr/1.0">
         
         
         InOut
      
      
   



Thank in advance




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=274#274

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: EIP dynamic-router

rnaudin-3
Hello,
If you check the XML schema embedded in the EIp component, you will see that the expected parameter is 'dynamicrouter-condition' not 'dynamic-router-condition'.

Maybe the plugin doesn't generate the good Su for the component EIP 2.2.1.

Regards,
/Roland




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=277#277

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: EIP dynamic-router

rnaudin-3
In reply to this post by rnaudin-3
maybe the parameter name has changed in the component without reporting
the modification in the Eclipse plugin...
 
Le Oct 28, 2008 10:15 AM, rnaudin
a écrit :

:
Hello,
If you check the XML schema embedded in the EIp component, you will
see that the expected parameter is 'dynamicrouter-condition' not
'dynamic-router-condition'.

Maybe the plugin doesn't generate the good Su for the component EIP
2.2.1.

Regards,
/Roland









-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=278#278

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: EIP dynamic-router

rnaudin-3
In reply to this post by rnaudin-3
Hi,

As the EIP plugin doesn't genered automatically the conditions in SU, I have to insert it manually by referencing in the document petals-se-eip-2.2-en.pdf, page 14, where there is the condition dynamic router syntaxe for example :
sum(/items/item/value) > 100
name(/*)='coucou'

Maybe the document isn't updated for the current version of EIP component.

Thank very much.
Very Happy




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=279#279

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: EIP dynamic-router

rnaudin-3
In reply to this post by rnaudin-3
Hi.

nguyen wrote:
This is my SU jbi.xml file
Code:



   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/">
   
   
   
      
                interface-name="generatedNs:dynamic-router"
         service-name="generatedNs:dynamic-routerService"
         endpoint-name="dynamic-routerServiceEndpoint">
   
         
         dynamic-router.wsdl
      
            
         dynamic-router
         count(//*)>0
      
      
      
                interface-name="iConsumeNsPrefix:XC17"
         service-name="iConsumeNsPrefix:XC17Service"
         endpoint-name="xc17"
         xmlns:iConsumeNsPrefix="http://xc17.snv2sxml.technical.services.esb.cirso.fr/1.0">
         
         
         InOut
      
      
      
                interface-name="iConsumeNsPrefix:XC18"
         service-name="iConsumeNsPrefix:XC18Service"
         endpoint-name="xc18"
         xmlns:iConsumeNsPrefix="http://xc18.snv2sxml.technical.services.esb.cirso.fr/1.0">
         
         
         InOut
      
      
      
                interface-name="iConsumeNsPrefix:XC21"
         service-name="iConsumeNsPrefix:XC21Service"
         endpoint-name="xc21"
         xmlns:iConsumeNsPrefix="http://xc21.snv2sxml.technical.services.esb.cirso.fr/1.0">
         
         
         InOut
      
      
   



I guess this one was generated by the plug-ins.
And you're right, it is weird that the conditions were not written in the proivde part.

As Adrien said, it is possible that the component has been updated and not the associated plug-in.
In particular, if the "condition" element associated to this pattern was renamed, it could explain these errors. Confused

I'm goign to get the last XSDs from the component and make corrections if necessary.




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=280#280

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: EIP dynamic-router

rnaudin-3
In reply to this post by rnaudin-3
OK.
I fixed it in the trunk. The condition renaming in 2.3 messed it up all.
This change went through my check out last time.

Since the version 2.3 is still in the trunk, I hope this is not a too much annoying problem to wait until the next plug-ins release.




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=281#281

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: EIP dynamic-router

rnaudin-3
In reply to this post by rnaudin-3
I will add an splitter pattern as soon. It will be under a "real" 2.3 wich will be released, and different of the 2.2 so Wink




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=291#291

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: EIP dynamic-router

rnaudin-3
In reply to this post by rnaudin-3
fgardes wrote:
I will add an splitter pattern as soon. It will be under a "real" 2.3 wich will be released, and different of the 2.2 so Wink

I guess this change will be reported in the XSD files of the EIP component (added into the available patterns).
If you can also add these XSDs in the EIP plug-in, that would be nice. That will be enough for the plug-in to show this new pattern.

Then, if your pattern has a specific behavior, we will see together to integrate this into the plug-in (e.g. manage conditions as it works with the dynamic-router). Wink




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=293#293

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: EIP dynamic-router

rnaudin-3
In reply to this post by rnaudin-3
All right. As soon as I 'll finished the splitter pattern EIP documentation, I 'll see how to extend the EIP eclipse plugin. It has got "specific behaviors" which will be detailed into the docs, so it will be more efficient that I call you when it will be finished.
Thanks!




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=294#294

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users