Results 1 to 3 of 3

Thread: Passing Javav objects between steps

  1. #1
    Join Date
    Jul 2010
    Posts
    13

    Default Passing Javav objects between steps

    Hi,

    I wonder is there any way to pass complex java object from
    1. one step to another
    2. one job to another)?
    Thanks,

    Aviad

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

    Default

    Many people use the Job's ExecutionContext to pass data between steps because it is persisted to the repository, and therefore available on restart (see http://static.springsource.org/sprin...aToFutureSteps). Remember to use scope="step" for the components in this pattern and don't put large objects in there because of the persistence.

  3. #3
    Join Date
    Jul 2010
    Posts
    13

    Default Thanks

    Dave,

    Thank you for your reply! I figured out the way to pass simple parameters between the steps is Job's ExecutionContext but there are only few types that can be stored on it: Int, String, Double and Long.

    The question is: can I store on the context my custom java object?

    Thanks,

    Aviad

Posting Permissions

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