Hi,

to move files (whatever the file type), you need to use a BinaryFileMarshaler in place of the default one in the file component :

<file:poller ....>
        <property name="marshaler">
                <bean 
class="org.apache.servicemix.components.util.BinaryFileMarshaler"/>
        </property>
</file:poller>

But, be careful, in the NMR, only XML message payload is supported, so it depends of the target services.

Regards
JB

On 09/08/2010 05:22 PM, sou wrote:

Hi, i'm new user of servicemix.
i'm following the tutorial and it works: i maked a SU that  move an xml file
from a directory to another and send a message to jms. But i want to move
other types of files not only xml also i want to make a filer to chosse file
that should be moved by name or extension. I checked the page talking about
servicemix-file and i make my own solution but it don't work and when i
start servicemix there is many errors.So please i need help to change my SU
to mov other types of files and thanks a lot

Reply via email to