Reputation: 398
I am creating a Spring Batch application using Java annotations. I have the @EnableBatchProcessing annotation, so I haven't explicitly defined a JobRepository or JobRepositoryFactory. This was working fine until today, when I started getting the "ORA-08177: can't serialize access for this transaction" error.
How can I change the isolation level on a JobRepository I don't create or interact with?
Upvotes: 3
Views: 2301
Reputation: 21453
"How can I change the isolation level on a JobRepository I don't create or interact with?" In short, you don't. You need to create it yourself by extending the DefaultBatchConfigurer
and overriding the createJobRepository
method to provide your own customized instance.
Upvotes: 3