This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Comment

We want to skip exceptions and have different skipLimits for different types of exceptions. Say an exception A can be skipped 5 times whereas exception B can be skipped 10 times. And i couldnt find any default skipPolicy implementations that support these requirements.

Currently we have a custom skipPolicy that does this. But exceptionHandlers like 'RethrowOnThresholdExceptionHandler', 'SimpleLimitExceptionHandler' seemed to satisfy our needs. So was wondering if we can use it without going back to 'beans' namespace from our current 'batch' namespace.

We want to skip exceptions and have different skipLimits for different types of exceptions. Say an exception A can be skipped 5 times whereas exception B can be skipped 10 times. And i couldnt find any default skipPolicy implementations that support these requirements.

This is straightforward to implement, but ExceptionClassifierSkipPolicy looks like to be what you want.

Currently we have a custom skipPolicy that does this. But exceptionHandlers like 'RethrowOnThresholdExceptionHandler', 'SimpleLimitExceptionHandler' seemed to satisfy our needs. So was wondering if we can use it without going back to 'beans' namespace from our current 'batch' namespace.

I think you should stick to the custom SkipPolicy, looks like it addresses what you need and is simpler than digging into the repeat framework.