I have a clustered application that is suffering from database deadlocks.
It is a j2ee application using JPA and hibernate. The database is DB2 8.1 on Z/OS is set to page locking (this is a requirement for the company).
The problem is that the primary key are generated as a sequence, and will often deadlock while trying to insert records if the system has any significant load.
Are there any "best practices" to reducing the probability of a deadlock?