Day 1 of Spring Integration here...I've got a simple directory monitor working but the JVM doesn't exit when I interrupt the main thread with Control-C. I tried specifying daemon=false as described here but that had no effect.
My configuration (with failed attempt at daemon=false) is as follows. What configuration do I need to make the JVM exit?
Code:<int:channel id="fileChannel" datatype="java.io.File"> <int:dispatcher task-executor="fileChannelTaskExecutor" /> </int:channel> <bean id="fileChannelTaskExecutor" class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor"> <property name="corePoolSize" value="2"/> <property name="daemon" value="false"/> </bean> <int:poller default="true" max-messages-per-poll="1" fixed-rate="1000" /> <int-file:inbound-channel-adapter directory="file:c:/watch" channel="fileChannel" prevent-duplicates="true" /> <int:outbound-channel-adapter channel="fileChannel" ref="target" method="handleMessage" > </int:outbound-channel-adapter> <bean id="target" class="...


Reply With Quote
