1 Reply Latest reply on Oct 8, 2008 4:17 AM by Joakim Sandstroem

# FS Listener and big files

Hi,

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.


It was the console output during my Java test while holding the test with a breakpoint.
After releasing the test, the message had been correctly inserted in the ESB.
Note: If I read exactly the same errors during copying the isofile, I did not wait for the completion!

Finally, my question is: Are we 100% sure every file dropped in a listened directory is correctly and fully inserted in the ESB even if FS listener attempt to pick it up while being written down on the disk?

My tests lead me to answer yes (beacause the file is renamed before insertion) but with some errors in the logs, but I'd like the team to confirm it.

Regards,

Brice

• ###### 1. Re: FS Listener and big files

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