I have an issue that hibernate hangs on an insert, I checked the connection pool but there are sufficient connections available. The hibernate logging doesn't reveal anything to me:
Code:
(INSERT STATEMENT ON POJO HERE)
jdbc.AbstractBatcher - preparing statement
entity.AbstractEntityPersister - Dehydrating entity: [org.company.domain.Pojo#13013]
type.StringType - binding 'test' to parameter: 1
type.StringType - binding '468' to parameter: 2
type.BooleanType - binding 'true' to parameter: 3
type.IntegerType - binding '13013' to parameter: 4
jdbc.AbstractBatcher - Adding to batch
entity.AbstractEntityPersister - Inserting entity: [org.company.domain.AnotherPojo#10010]
jdbc.AbstractBatcher - Executing batch size: 1
A unittest proved fine, so there may be something with the spring configuration. It's a batch process that creates it's own session including a flush and clear etc. So I didn't set any of the transactionattributes on this method, but adding "PROPAGATION_REQUIRED" didn't help either.
I'm really stuck here, don't know where to look. Any thoughts would be very appreciated.