Results 1 to 10 of 10

Thread: Is it a Spring batch compliant scenario?

Hybrid View

  1. #1
    Join Date
    Aug 2007
    Location
    Paris
    Posts
    18

    Question Is it a Spring batch compliant scenario?

    This is my use case:
    - I receive job demands through a WebService, and have to run a business job passing some input data coming from the WebService request.

    Notes that I can run the same job many times or in parallel, depending on jobs demand I receive.

    It is a spring batch scenario? I think so,
    And can some body give me the spring xml config skeleton, it will help to have a concrete view of the implementation.

    Thanks.
    SCJP, SCWCD, SCBCD, SCEA P1

  2. #2
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    Not sure if I can help with the particular scenario you mention without more information about the jobs. Did you see the samples? There are quite a few configuration "skeletons" for want of a better word. Maybe they would help?

  3. #3
    Join Date
    Aug 2007
    Location
    Paris
    Posts
    18

    Question Thanks for reply

    I have seen the example, and some aspects are now clear but I still have a little question.
    Just consider the simpleTaskletJob and think that the fileName to process is coming from a web service, can you tell me how can I do to fullfill this request, and also consider that the WebService could receive many request and I have to run many job processing different files.

    Thanks
    SCJP, SCWCD, SCBCD, SCEA P1

  4. #4
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    I think the best approach would be to wrap a JobLauncher or JobExecutorFacade in your web service, replacing or duplicating the SimpleCommandLineLauncher. N.B. the API is undergoing some changes there - should be stable when we get to m2.

  5. #5

    Default

    This is my humble opinion, but this sounds more like an online scenario than a batch one, specially because you are returning the response in a synchronous way. What benefits do you think you can get from this framework?

    A more batch-like scenario could be if you save your requests and then want to process them all together. and reply afterwards.

    Regards
    AB

  6. #6
    Join Date
    Aug 2007
    Location
    Paris
    Posts
    18

    Default

    Quote Originally Posted by sotretus View Post
    This is my humble opinion, but this sounds more like an online scenario than a batch one, specially because you are returning the response in a synchronous way. What benefits do you think you can get from this framework?

    A more batch-like scenario could be if you save your requests and then want to process them all together. and reply afterwards.

    Regards
    AB
    The response that I want to send will just have some information about the status of the submited job and the job identifier, because after sending a job submission request I want to monitor the job online using his id.
    SCJP, SCWCD, SCBCD, SCEA P1

Posting Permissions

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