wso2esb - How ro read files from multiple locations using wso2 vfs transport? -
this proxy service developed using wso2
service..
<parameter name="transport.vfs.fileuri">file:///home/user/test/in</parameter> <!--change--> <parameter name="transport.vfs.contenttype">text/xml</parameter> <parameter name="transport.vfs.filenamepattern">.*\.xml</parameter> <parameter name="transport.pollinterval">15</parameter> <parameter name="transport.vfs.moveafterprocess">file:///home/user/test/original</parameter> <!--change--> <parameter name="transport.vfs.moveafterfailure">file:///home/user/test/original</parameter> <!--change--> <parameter name="transport.vfs.actionafterprocess">move</parameter> <parameter name="transport.vfs.actionafterfailure">move</parameter> <target> <endpoint> <address format="soap12" uri="http://localhost:9000/services/simplestockquoteservice"/> </endpoint> <outsequence> <property name="transport.vfs.replyfilename" expression="fn:concat(fn:substring-after(get-property('messageid'), 'urn:uuid:'), '.xml')" scope="transport"/> <property action="set" name="out_only" value="true"/> <send> <endpoint> <address uri="vfs:file:///home/user/test/out"/> <!--change--> </endpoint> </send> </outsequence> </target> <publishwsdl uri="file:repository/samples/resources/proxy/sample_proxy_1.wsdl"/> </proxy>
using fileuri parameter can read files particular(file:///home/user/test/in) location , place them in location(file:///home/user/test/out), requirement is, want read files multiple locations , place them in single folder, how using wso2 vfs?
i don't think 1 vfs proxy can listen multiple source location (transport.vfs.fileuri). can have multiple vfs proxies listen on multiple source location (one vfs proxy per source location) , write same destination location.
Comments
Post a Comment