All you need is to have a main method (or a WAR file if you want to deploy it to Tomcat or another servlet container) that creates the ApplicationContext Spring (for example, the new ClassPas thanksmlApplicationContext ("file-poller.xml"))
It can work with a cron trigger, with a fixed speed or with a delay with a fixed delay.
JMX operations can be opened in the Spring integration file adapter (or any adapter) by simply adding one configuration item (for example, <mbean-export>).
Bottom line: you don't need an ESB if you just want it to run continuously. You can have one small configuration file and one line of code in the main method.
Visit the samples for more information: https://github.com/springsource/spring-integration-samples (see under the main / file)
Hope this helps, Mark
source share