Results 1 to 3 of 3

Thread: Determine job 'input-path' dynamically at runtime

  1. #1

    Question Determine job 'input-path' dynamically at runtime

    What is the recommended approach to determine parameters like input-path & output-path dynamically.
    I was trying to set-up them up in the "pre-action" via a Java Callable, and use SPEL in the job configuration to access these dynamic values from the callable bean (defined in pre-action); this does not seem to work. Can you please provide any recommendations.

  2. #2

    Default

    I think, rather than setting these properties as part of job-runner "pre-action", I should set them up in an independent bean, and depends on "init" to initialize these variables correctly.

  3. #3
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    That might work or you can register/configure the bean yourself depending on how dynamic you want things to be.
    An alternative to XML is to use JavaConfig - gives much better control over all parameters.
    If that doesn't work (because things are initialized too early) then handing the registration itself is a good option.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Posting Permissions

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