Announcement Announcement Module
No announcement yet.
AbstractJobRepositoryFactoryBean, ItemWriter Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • AbstractJobRepositoryFactoryBean, ItemWriter

    public AbstractJobRepositoryFactoryBean(){
    isolationLevelForCreate = "ISOLATION_SERIALIZABLE";
    I got some error messages in oracle when i ran some jobs in parallel. (ORA-08177:can't serialize access for this transaction)
    Because isolation level for create is "serializable" as you know.
    I wanna know why you've let isolation level Serializable. Is there any policy or something to let this serializable?

    Spring Batch 1.1.4
    ItemWriter#write(Object obj)

    Spring Batch 2.0.0
    ItemWriter#write(List<? extends T> items)

    I wanna know why SpringBatch 2.0.0 doesn't support ItemWriter#write(Object obj). There are too many problems with the change of 'write' method.

    Thank you.

  • #2

    #2: it actually solves a lot of problems for most people. It is much more natural to write a list of items, since it allows you to control the performance optimisations like flushing and batch updates in a single method. What is the issue you are encountering?