-
Jul 28th, 2010, 12:25 AM
#1
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
-
Aug 1st, 2010, 07:25 AM
#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.
-
Aug 1st, 2010, 07:33 AM
#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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules