You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Guillaume Nodet <gn...@gmail.com> on 2006/06/07 14:33:22 UTC

Re: How to deploy the EIP in the SU?

Could you post the stack trace / error please ?

Cheers,
Guillaume Nodet

On 6/7/06, echolu <cj...@163.com> wrote:
>
>
> I have writed a xbean.xml, and  zip it as eiptest-su.zip.
> But when i deploy the SA which contians the eiptest-su.zip, it resports
> that
> can't deploy the xbean service unit. Please give some tips! Thanks!
>
> xbean.xml is just like following:
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns:eip="http://servicemix.apache.org/eip/1.0"
>         xmlns:test="http://test" >
>    <eip:xpath-splitter service="test:xpathSplitter" endpoint="endpoint"
> xpath="/*/*" namespaceContext="#nsContext">
>         <eip:target>
>         <eip:exchange-target uri="service:http://test/router" />
>         </eip:target>
> </eip:xpath-splitter>
>
> <eip:content-based-router service="test:router" endpoint="endpoint">
>         <eip:rules>
>                 <eip:routing-rule>
>                         <eip:predicate>
>                         <eip:xpath-predicate xpath="count(/test:echo) = 1"
> namespaceContext="#nsContext" />
>                         </eip:predicate>
>                         <eip:target>
>                         <eip:exchange-target service="test:echo1"" />
>                         </eip:target>
>                         </eip:routing-rule>
>                         <eip:routing-rule>
> <!-- there is no predicate, so this is the default destination -->
>                 eip:target>
>                         <eip:exchange-target service="test:echo2" />
>                                 </eip:target>
>                         </eip:routing-rule>
>                 </eip:rules>
>         </eip:content-based-router>
>         <!-- START SNIPPET: namespace-context -->
>         <eip:namespace-context id="nsContext">
>                 <eip:namespaces>
>                         <eip:namespace prefix="test">http://test
> </eip:namespace>
>                 </eip:namespaces>
>         </eip:namespace-context>
>         <!-- END SNIPPET: namespace-context -->
> </beans>
>
> --
> View this message in context:
> http://www.nabble.com/How-to-deploy-the-EIP-in-the--SU--t1747531.html#a4750165
> Sent from the ServiceMix - User forum at Nabble.com.
>
>

Re: How to deploy the EIP in the SU?

Posted by echolu <cj...@163.com>.
Thanks for your reply.
I have fixed the mistake which adds redundant double quotation marks at Line
17.

<eip:exchange-target service="test:echo1"" /> 


--
View this message in context: http://www.nabble.com/How-to-deploy-the-EIP-in-the--SU--t1747531.html#a4764300
Sent from the ServiceMix - User forum at Nabble.com.