img
Figure 21-14. The job launching process
The main flow of the job launching process is as follows:
Spring Integration's inbound channel adapter polls the file for new entries.
1.
Upon the arrival of a file, the transformer will transform the information into a
2.
job launch request message.
Spring Integration's service activator receives the job launch request message
3.
and passes it to the corresponding message handler. In our case, the message
handler is the JobLaunchingMessageHandler class (under the package
org.springframework.batch.integration.launch), which belongs to the Spring
Batch Integration module within the Spring Batch Admin project.
When you look into the configuration of the messageHandler bean defined
4.
within the <integration:service-activator> bean in the batch-context.xml
file, the constructor argument of the message handler is the job launcher (the
JobLauncher interface under the package
org.springframework.batch.core.launch, which belongs to Spring Batch). The
message handler will run the job with the transformed job parameters.
The next phase is job execution, which is shown in Figure 21-15.
Search WWH :
Custom Search
Previous Page
Spring Framework 3 Topic Index
Next Page
Spring Framework 3 Bookmarks
Home