img
Figure 20-7. Graphical view of Spring Integration configuration in STS
Now we can test the file polling. Listing 20-12 shows the testing program.
Listing 20-12. Testing File Polling
package com.apress.prospring3.ch20;
import org.springframework.context.support.GenericXmlApplicationContext;
public class BatchIntegrationTest {
public static void main(String[] args) {
GenericXmlApplicationContext ctx = new GenericXmlApplicationContext();
ctx.load("classpath:app-context.xml");
ctx.refresh();
System.out.println("App context initialized successfully");
while (true) {
}
}
}
Search WWH :
Custom Search
Previous Page
Spring Framework 3 Topic Index
Next Page
Spring Framework 3 Bookmarks
Home