View Full Version : Limit of file:inbound-channel-adapter
Oct 22nd, 2009, 08:18 AM
I'm testing the spring integration with "file:inbound-channel-adapter". When I try to process small files my implementation works so good, but when process large file (46MB) the aplication doesn´t works. Are there a limit of file? Are there any configuration for this?
Oct 24th, 2009, 04:54 PM
Can you be more specific on the "doesn't works" part? I'm expecting you're seeing an OOME or something similar, but I need more details before I can say anything sensible about it.
Oct 28th, 2009, 02:03 PM
<file:inbound-channel-adapter id="filesIn" directory="file:c:/temp/bov" auto-create-directory="true" >
<integration:interval-trigger interval="5000" />
<file:outbound-channel-adapter id="fileOut" directory="file:c:/temp/proc" />
<!-- Transformadores -->
<file:file-to-string-transformer input-channel="filesIn" output-channel="fileString" />
<integration:transformer input-channel="fileString" output-channel="pregao" ref="transformar"></integration:transformer>
<!-- ServiÃ§os -->
<integration:service-activator input-channel="pregao" output-channel="fileOut" ref="pregaoService"> </integration:service-activator>
When the archive is large the transform doesn't work and the service doesn't to be active. The application neither uses memory nor cpu.
AbstractApplicationContext context = new ClassPathXmlApplicationContext("conf.xml",MinhaClasse.class);
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.