Announcement Announcement Module
Collapse
No announcement yet.
Passing Javav objects between steps Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.

    Comment


    • #3
      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

      Comment

      Working...
      X