Hi, 

           I have a File sender endpoint (test:s) created that sends a file
to a folder. The SA containg this SU is deployed into Servicemix 4.3 deploy
folder. I am trying to send a file from Camel poller (file:input2) to the
JBI sender(test:s). This does not work. The code is below.

           Is this expected to work? Please let me know your comment. 

With Best Regards,
Diwakar

JBI File sender:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans";
   xmlns:file="http://servicemix.apache.org/file/1.0";
   xmlns:med="test"
   xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://servicemix.apache.org/file/1.0
   http://servicemix.apache.org/schema/servicemix-file-3.2.3.xsd
   http://www.springframework.org/schema/beans
   http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>
   <file:sender directory="Directory1" endpoint="endpoint" service="med:s">
   </file:sender>
</beans>

Camel File poller:
<?xml version="1.0" encoding="UTF-8"?>
<blueprint
xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="
http://www.osgi.org/xmlns/blueprint/v1.0.0
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd";>
<camelContext xmlns="http://camel.apache.org/schema/blueprint";>
<route>
<from uri="file:input2"/>
<threads>
<log message="Copying ${file:name} to the output directory"/>
<to uri="jbi:service:test/s"/>
</threads> 
</route>
</camelContext>
</blueprint>

--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-JBI-Interaction-tp4857978p4857978.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to