Results 1 to 2 of 2

Thread: Help Required on SpringItegration + SpringBatch

  1. #1
    Join Date
    Nov 2012
    Posts
    14

    Default 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
    Samba

  2. #2
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,037

    Default

    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.
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

Posting Permissions

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