0

Alternatively, you could remove until-successful and use an inbound VM or JMS endpoint with transactional delivery to perform retries on the outbound FTP endpoint.

could you please provide me the example on this with VM?

this related to below question

Community
  • 1
  • 1
Gopi
  • 105
  • 1
  • 7
  • 24

1 Answers1

0

How about try something like the below

<flow name="transactionalVM">
    <vm:inbound-endpoint path="orders" exchange-pattern="one-way">
        <vm:transaction action="ALWAYS_BEGIN"/>
     </vm:inbound-endpoint>
     <file:outbound-endpoint ref="receivedOrders"/> <!-- replace this with your FTP endpoint -->
</flow>

Look at transaction management in Mule to figure out how the retries can be controlled, right now its going to try endlessly

Now if you are wondering how the file outbound is part of the transaction have a look at this (Configuration Tips and Tricks) and this, hint here

Community
  • 1
  • 1
Sudarshan
  • 8,574
  • 11
  • 52
  • 74
  • will it work in 3.4.2. I more thing shall I need to use FTP connector reference with reconnection parameter? – Gopi Jun 09 '15 at 11:22
  • Good question my understanding is that reconnection parameter applies only to inbound endpoints. Yes I think it should work with 3.4.2 also (i have not tested it, but have no reason to believe the contrary). I related more elaborate and possibly confusing discussion [here](http://forum.mulesoft.org/mulesoft/topics/does_reconnect_work_for_outbound_ftp_endpoints) – Sudarshan Jun 09 '15 at 23:40
  • I am asking for outbound FTP .could you please confirm me wheather it wil work for or not? – Gopi Jun 10 '15 at 05:45
  • Do post follow up questions, in case you have problems during the implementation – Sudarshan Jun 10 '15 at 07:28
  • reconnection parameters are not working with outbound FTP which has given as connector refernce properties. It is not retrying.. could you please provide the solution – Gopi Jun 11 '15 at 05:51
  • Why are you using in re-connection parameters ? Update your question with what you exactly do to reproduce your problem. [re-connection is not the same as retrying](http://stackoverflow.com/questions/30746247/which-mule-transports-does-the-re-connection-strategy-work-with) – Sudarshan Jun 11 '15 at 08:21