Page 4 of 4 FirstFirst ... 234
Results 31 to 32 of 32

Thread: Passing an object between Listener and Writer

  1. #31

    Lightbulb

    Quote Originally Posted by dkaminsky View Post
    2. Throw an exception that is non-recoverable (i.e. not skippable, doesn't cause a retry, etc.)
    I tried throwing the RuntimeException from afterStep of step-1 (so as to terminate the job and not to proceed with step-2). However, this exception gets handled in ItemOrientedStep and continues with the step-2.

    May be throwing RuntimeException in the Writer can terminate the job (as per 4.5.3 of the doc...but i need to terminate the job from afterStep, i think)

    Why does "stepExecution.setTerminateOnly()" don't work? Do i need completion policy or something?

  2. #32

    Talking

    Quote Originally Posted by Dave Syer View Post
    Did you forget to register the wrapped writer as an ItemStream in the step?
    I did read 3.10.1. But not sure how to register the wrapped writer as an ItemStream? (Wrapped writer extends AbstractItemStreamItemWriter)

    Please help!

Posting Permissions

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