|
This is the description from the File-Transport:
"Description : If set to true (the default), it will cause the file to be deleted once it is read. If streaming is turned on, this occurs when the InputStream for the file is closed. Otherwise the file will be read into memory and deleted immediately." That means that the file will always be deleted (when the stream is closed). Also, if you use an Exception Strategy that handle the message if an error occurs you got the problem that the file is not deleted, and thus the file will be resent in the next poll()... So, I could write a test case for The problem is that I think that could take more time than I currenty have. My suggestion/patch is only about ensure that the transport works as earlier versions and that the new functionality is optional, thus not enforcing this on users running the old transport as well as confusing users that thinks that files never will be deleted if an exception occurs (independent on which transport they use on the inbound endpoint) The code is now committed.
The default for the attribute keepFileOnError is false to ensure backward compatibility as a default value. Changed the default value to true after discussion with Magnus
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
I think that could make the issues clearer to understand.