Hello, I'm working on a ServiceMix application that is able to send large files on HTTP (more here in french http://www.odelia-technologies.com/node/128); the application works well, but I ask me some question about special cases, for example whrn the network is down. The application is a SA deployed on SM 3.3 and use, to send file, the following services:
servicemix-file -> servicemix-bean -> servicemix-http (as provider) A servicemix-file service detects files in a folder; when a file is detected, the service-bean service is invoked (its onMessageExchange method): it reads the binary content of the file by chunk of data and sends each chunk to the servicemix-http service that acts as provider over the wire. All is OK: when a file apperas in the folder, it is well sent over the wire, and the file is deleted form the folder. But when I cut the network while the file is sent (debanching the cable), the file is partially transmitted and deleted from the folder. An exception occured in the servicemix-http service. In fact I wouldn't want the file be deleted if a problem occurs when sending the file! Any suggestion to handle this situation? How can the http service signals a problem to the bean service? Cheers, Bertrand. PS: my servicemix-bean service uses the sendSync method to send data chunk. -- View this message in context: http://www.nabble.com/Sending-large-files-on-HTTP-tp21127849p21127849.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
