Hello,

I try to evaluate the possibility of routing messages to JBI in SMIX4. In
general I was wondering how can I expose the JBI endpoint to the whole OSGI
container.

I've decided that at first step I would try to expose a file-sender SU
(file-component) and somehow send a message to it. I figured out that i
could use camel-nmr to route the message from some source. In order to do so
I got the camel-nmr example and slightly modified it:

<camel-osgi:camelContext
xmlns="http://activemq.apache.org/camel/schema/spring";>
<route>
<from uri="file:c:\fsenderInput"/>
<convertBodyTo type="java.lang.String"/>
<to uri="nmr:{http://agh.soa.edu.pl/filesender}fsender:fsenderendpoint"/>
</route>
</camel-osgi:camelContext>

The configuration of file sender SU looks like this:

<file:sender service="fsender:fsender"
endpoint="fsenderendpoint"
directory="c:/fsender">

<!-- Custom Marshaler -->
<!--
<property name="marshaler">
<bean class="org.apache.servicemix.components.util.BinaryFileMarshaler" />
</property>
-->
</file:sender>

Everything deploys in the container with no problem but when I copy the file
with following content:
<?xml version="1.0" encoding="UTF-8"?>
<test hello="hello>
</test>
to the c:\fsenderInput dir an error occurs "No message content in the
inbound message for message exchange" (log attached). What is the reason of
this error? Should I define some specific marshaler?

Similar error occurs when I set the from uri to:
<from uri="timer://myTimer?fixedRate=true&amp;period=2000"/>

Thanks in advance for any help.

Log: 
http://www.nabble.com/file/p22453120/camel-nmr-to-file-su-exception.txt
camel-nmr-to-file-su-exception.txt 
-- 
View this message in context: 
http://www.nabble.com/Routing-to-JBI-with-Camel-NMR-tp22453120p22453120.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to