You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Hiranya Jayathilaka (Assigned) (JIRA)" <ji...@apache.org> on 2011/12/19 11:12:30 UTC
[jira] [Assigned] (SYNAPSE-721) VFS Proxy doesn't move file to
failure destination when the class mediator throws an exception
[ https://issues.apache.org/jira/browse/SYNAPSE-721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hiranya Jayathilaka reassigned SYNAPSE-721:
-------------------------------------------
Assignee: Hiranya Jayathilaka
> VFS Proxy doesn't move file to failure destination when the class mediator throws an exception
> ----------------------------------------------------------------------------------------------
>
> Key: SYNAPSE-721
> URL: https://issues.apache.org/jira/browse/SYNAPSE-721
> Project: Synapse
> Issue Type: Bug
> Components: Core
> Reporter: Kasun Indrasiri
> Assignee: Hiranya Jayathilaka
> Attachments: synapse-721.patch
>
>
> I'm using a vfs listener proxy similar to the following configuration. The class mediator in the In Sequence throws Synapse Exception in a failure case. However, in such a scenario, the proxy doesn't move the request file(/home/kasun/development/rnd/vfs_lisener/vfsIn/) to the failure destination(/home/kasun/development/rnd/vfs_lisener/vfsFailed).
> <proxy name="FTPProxy" transports="vfs">
> <parameter name="transport.vfs.FileURI">file:///home/kasun/development/rnd/vfs_lisener/vfsIn</parameter>
> <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/kasun/development/rnd/vfs_lisener/vfsOut</parameter>
> <parameter name="transport.vfs.MoveAfterFailure">file:///home/kasun/development/rnd/vfs_lisener/vfsFailed</parameter>
> <parameter name="transport.vfs.ActionAfterProcess">MOVE</parameter>
> <parameter name="transport.vfs.ActionAfterFailure">MOVE</parameter>
> <target>
> <inSequence>
> <log level="full"/>
> <class name="org.foo.bar.ResponseMediator"/>
> <send>
> <endpoint>
> <address format="soap11" uri="http://localhost:9000/services/SimpleStockQuoteService"/>
> </endpoint>
> </send>
> </inSequence>
> <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/kasun/development/rnd/vfs_lisener/vfsOut"/>
> <!--CHANGE-->
> </endpoint>
> </send>
> </outSequence>
> </target>
> </proxy>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org