Announcement Announcement Module
No announcement yet.
Help Required on SpringItegration + SpringBatch Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help Required on SpringItegration + SpringBatch

    Hi ,

    I have one request for DB to DB dump.but its not batch it should be real-time

    scenario is like below:

    (JMS puts the data in input channel) from input channel I will receive a input message , input message contains orderNumber, batchNo ,etc by taking order_number,batch_number from message I have to get the HeaderDetails from source HEADER table,once we get the header details, in the next step I have to get LinesDetails from source DB based on header_Id. and then i have to store these header/ lines data in target header/lines tables.

    Next I have to update success/failure message to output channel.

    could you please get me some suggestions on this.

    Thanks In Advance

  • #2
    It is not clear what you are asking.

    If the work is big enough for a batch job, write the batch job and wrap the JobLauncher in a service that is invoked using a <service-activator/>; return the result of the job execution. The spring-batch-admin project has a JobLaunchingMessageHandler to help with this.

    If you are simply talking about updating a few rows, then just put the code directly in the service.