My application will have a FS entry point for messages, so I use a FS listener.
To check the behaviour while dropping big files in the input directory, I made two simple tests :
1/ With a java test, I create a simple text file and run it in debug mode with break points in order to simulate a long time flow
2/ I dropped a 3.7 Go Iso file (!) in the input directory
The behaviour was the same in the console:
09:36:29,615 ERROR [AbstractFileGateway] Composer <org.jboss.soa.esb.listeners.gateway.LocalFileMessageComposer> Failed. org.jboss.soa.esb.listeners.message.MessageDeliverException: Invalid File payload. File 'c:\dev\jee\esb\input\text.txt.esbWorking' doesn't exist.
If you process large files you might want to implement the service as shown in the following example: (jbossesb dir)/samples/quickstarts/huge-split-enrich-transform-route