Like this:
<file:endpoint service="test:service" endpoint="endpoint"
directory="file:target/componentOutput">
<file:marshaler>
<bean class="xxx">
xxx
</bean>
</file:marshaler>
</file:endpoint>
On 11/13/06, mart <[EMAIL PROTECTED]> wrote:
In this syntax, how would I use a custom marshaler I have written myself?
gnodet wrote:
>
> Yes, both ftp and file use the same syntax.
> The documentation is currently very light and it should
> improve before 3.1 release.
>
> On 11/10/06, mart <[EMAIL PROTECTED]> wrote:
>>
>> Hello
>>
>> how to use custom marshaler with the new FTP and File components?
>>
>> I can see this but how I map this kind of config with a custom Marshaler
>> on
>> a syntax point of view? does this work also for FTP?
>>
>> <file:endpoint service="test:service" endpoint="endpoint"
>> directory="file:target/componentOutput">
>> <file:marshaler>
>> <sm:defaultFileMarshaler>
>> <sm:fileName>
>> <!-- lets use a header from the message -->
>> <sm:xpathString xpath="concat($name, '.xml')"/>
>> </sm:fileName>
>> </sm:defaultFileMarshaler>
>> </file:marshaler>
>> </file:endpoint>
>>
>> Thank you!
>> --
>> View this message in context:
>>
http://www.nabble.com/FTP-Component-%283.1%29-and-Marshalers-tf2606860s12049.html#a7274395
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Cheers,
> Guillaume Nodet
>
>
--
View this message in context:
http://www.nabble.com/FTP-Component-%283.1%29-and-Marshalers-tf2606860s12049.html#a7317060
Sent from the ServiceMix - User mailing list archive at Nabble.com.
--
Cheers,
Guillaume Nodet