L.S.,

Before adding the Camel wiretap, your targetService on the CXF BC
endpoint was referring to the CXF SE endpoint.  You now need to target
this service from within your Camel wiretap, so it should go where you
have the ??? now.  However, the URIs you are using should match the
format described in http://camel.apache.org/jbi.html, using the full
namespace and not the prefix as you are using now.  An example: you
should actually be using
uri="jbi:service:http://apache.org/hello_world_soap_http/SOAPService";

To route from the CXF BC to the Camel route, you should choose another
targetService/endpoint name and make sure that to use the matching URI
in the <from uri=""/> bit.  BTW, the same remark about the URIs also
applies to your FTP endpoint name: you should be using the full
namespace and not the prefix.

Regards,

Gert Vanthienen
------------------------
Open Source SOA: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/



2009/2/3 peppinolusuraio <[email protected]>:
>
> I have this scenario:
>
> a CXF based application in service mix. I have to FTP the ingoing messages
> to a FTP server.
> So I think would need:
>
> -1 CXF-BC su
> -1 CXF-SE su
> -1 FTP-SENDER su
> -1 CAMEL su
>
> I think I would need a wiretap that send the incoming messages to the FTP
> SU.
> I have config problems with camel su.
>
> The following are the xbean.xml
>
> CXF-SE xbean:
>
> <beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0";
>       xmlns="http://www.springframework.org/schema/beans";
>         xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance";
>       xsi:schemaLocation="http://servicemix.apache.org/cxfse/1.0
> http://servicemix.apache.org/schema/servicemix-cxfse-3.2.2.xsd
>       http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>
>
>    <cxfse:endpoint>
>        <cxfse:pojo>
>          <bean class="org.apache.hello_world_soap_http.GreeterImpl" />
>        </cxfse:pojo>
>    </cxfse:endpoint>
>
> </beans>
>
>
> CXF-BC xbean:
>
> <beans xmlns="http://www.springframework.org/schema/beans";
>       xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0";
>       xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance";
>       xmlns:hello="http://apache.org/hello_world_soap_http";
>       xsi:schemaLocation="http://servicemix.apache.org/cxfbc/1.0
> http://servicemix.apache.org/schema/servicemix-cxfbc-3.2.2.xsd
>       http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>
>
>  <cxfbc:consumer wsdl="classpath:hello_world.wsdl"
>                    targetService="hello:SOAPService"
>                      targetInterface="hello:Greeter"/>
>
> </beans>
>
>
>
> FTP sender xbean:
>
> <beans xmlns:ftp="http://servicemix.apache.org/ftp/1.0";
>       xmlns:replaceMe="http://servicemix.apache.org/replaceMe";
>       xmlns="http://www.springframework.org/schema/beans";
>       xmlns:file ="file"
>       xmlns:ftpz ="ftp"
>       xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance";
>       xsi:schemaLocation="http://servicemix.apache.org/ftp/1.0
> http://servicemix.apache.org/schema/servicemix-ftp-3.2.2.xsd
>       http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>
>
>  <ftp:sender service="ftpz:sender"
>              endpoint="endpoint"
>              uri="ftp://asinous:asin...@localhost"; />
> </beans>
>
>
>
> what about the Camel one???
>
> <beans xmlns="http://www.springframework.org/schema/beans";
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>       xmlns:hello="http://apache.org/hello_world_soap_http";
>       xmlns:ftpz ="ftp"
>       xsi:schemaLocation="
>       http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>       http://activemq.apache.org/camel/schema/spring
> http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
>    ">
>
>  <camelContext id="camel"
> xmlns="http://activemq.apache.org/camel/schema/spring";>
>  <route>
>    <from uri="hello:SOAPService"/>
>    <multicast>
>      <to uri="??????????"/>
>      <to uri="ftpz:sender"/>
>    </multicast>
>  </route>
> </camelContext>
> </beans>
>
> what to put inside thje question marks, (if my idea is correct)???
> --
> View this message in context: 
> http://www.nabble.com/camel-question-tp21807917p21807917.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>

Reply via email to