Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Spring Integration with Spring Batch - Message Triggered Jobs

  1. #11

    Default

    i figured i must have done something wrong when my job was not doing its 'job', but the spring-batch-jobs showed that the job was launched ...

    so i tried the spring-batch-integration source and checked out the launch configuration settings, and sure enough the job was not doing' its job there either.

    The joblaunchrequest wraps a Jobsupport (implements Job) and the jobParameters. Looking at JobLaunchingMessageHandlerIntegrationTests-context.xml , i assumed that by passing a testJob on the requests channel the testJob and its associated TestTasklet would be launched.
    However, in SimpleJobLauncher run the jobexecution contains the reference to the jobsupport object which was passed along. Should it not have have looked up the reference to the testJob and started that job ? rather than invoking the execute method on the JobSupport("testJob") instance which is nothing ?

    I think i may have misunderstood something ; do we have to do add something extra here ?

  2. #12

    Default

    i got around this by using the jobRegistry to locate the job at runtime.
    i still however do not understand the point of the sample given in the launch example for spring-batch-integration.

  3. #13

    Default

    The spring batch admin integration provides great utility api to launch jobs. I have managed to integrate spring-batch-admin to my previous spring-batch job and launch them via message triggered job requests via spring-integration.
    works great !

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •