Results 1 to 2 of 2

Thread: AbstractJobRepositoryFactoryBean, ItemWriter

  1. #1
    Join Date
    May 2009
    Location
    korea
    Posts
    1

    Default AbstractJobRepositoryFactoryBean, ItemWriter

    #1.
    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?

    #2.
    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
    Join Date
    Jun 2005
    Posts
    4,232

    Default

    #1: http://static.springframework.org/sp...b.html#d0e1800

    #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?

Posting Permissions

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