ServiceMix uses FileMarshaler for poller and sender endpoints. Default
implementation is
org.apache.servicemix.components.util.DefaultFileMarshaler.

By default marshaler sends file conent as message body (xml). If you would
use other format you can override method writeMessage in
DefaultFileMarshaler or use BinaryFileMarshaler to send content as
attachment.

Http endpoints also supports marshalers. For examples please look this page:
http://cwiki.apache.org/confluence/display/SM/servicemix-http+new+endpoints

File marshalers are also described at wiki page:
http://servicemix.apache.org/servicemix-file.html

Regards,
Luke


skg wrote:
> 
> Hi,
> 
> I am trying one scenario in which there is two binding component one is
> file-binding and other is http-binding.
> file-binding component will poll file and this file should be moved to
> http-binding component. http-binding component will call a webservice
> which is running in another fuse and send that file to that fuse.
> 
> I have some questions:-
> 1. Will fuse convert this file to any message format? if yes than what
> will be the format?
> 2. Can we use text file in place of xml file?
> 
> currently i am using file-binding-su xbean file as:-
> {<beans xmlns:file="http://servicemix.apache.org/file/1.0";
> xmlns:logisticx="http://logisticx.demo.fuse.iona.com/";>
> <file:poller service="logisticx:file" endpoint="poller"
> file="file:D:/Polar" targetService="logisticx:HelloTestService"
> targetEndpoint="StockEndpoint"
> deleteFile="true" autoCreateDirectory="true"/>
> </beans>}
> 
> http-binding-su as:-
> {<beans xmlns:http="http://servicemix.apache.org/http/1.0";
> xmlns:logisticx="http://logisticx.demo.fuse.iona.com/";> <http:endpoint
> service="logisticx:HelloTestService" endpoint="StockEndpoint"
> role="provider" locationURI="http://localhost:9090/hello";
> wsdlResource="http://localhost:9090/hello/?wsdl"; />
> </beans>}
> 
> can u please give me the actual xbean file for both file-binding-su and
> http-binding-su.
> 
> Thanks
> 


-----
Lukasz Dywicki,
Integration Developer
http://blog.dywicki.pl/
-- 
View this message in context: 
http://www.nabble.com/problem-with-xbean-file-configuration-tp19568591p19569370.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to