Hi Bertrand,

Basicly, you want a kind of XA transaction between your SU : if an error occurs
on one SU, you want to rollback the behavior on a previous SU.

Maybe, you can define this kind of behavior by defining your own marshaler on 
the
file poller but it's not easy to callback a behavior on another SU.

I think that using Spring TX (and aop), it's certainly possible.
I'll make a try like this and keep you posted.

Regards
JB
--
Jean-Baptiste Onofré
[email protected]
BuildProcess/AutoDeploy Project Leader
http://buildprocess.sourceforge.net

On Mon 22/12/08 14:31, bgoetzmann [email protected] wrote:
> 
> 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-tp21127849p21
> 127849.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
> 
> 
> 
> 


Reply via email to