私は春の統合+バッチアプリケーションを持っています。
統合は、受信チャネル アダプターでファイルを読み取り、バッチ ジョブを呼び出すために使用されます。jobRepository は org.springframework.batch.core.repository.support.JobRepositoryFactoryBean から定義されます。
トランザクションマネージャーは org.springframework.orm.jpa.JpaTransactionManager です。
アプリケーションが起動すると、理由はわかりませんが、この奇妙な種類の構成を読みました。
[5860] [2012-03-12 17:40:47,267] D [main] [org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource] Adding transactional method [*] with attribute [PROPAGATION_REQUIRED,ISOLATION_DEFAULT]
[5860] [2012-03-12 17:40:47,267] D [main] [org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource] Adding transactional method [create*] with attribute [PROPAGATION_REQUIRES_NEW,ISOLATION_SERIALIZABLE]
[5860] [2012-03-12 17:40:47,267] D [main] [org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource] Adding transactional method [getLastJobExecution*] with attribute [PROPAGATION_REQUIRES_NEW,ISOLATION_SERIALIZABLE]
デフォルトでは、すべてのジョブメソッドが分離SERIALIZABLEで構成されているようですが、どこにも設定していません。デフォルトの分離レベルを ISOLATION_DEFAULT として設定する方法はありますか?