Tuesday, August 01, 2006

Oracle Jboss batch support

The client error message is:
...localId=18] status=STATUS_NO_TRANSACTION; - nested throwable: (javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update)

I found that the " JDBC batch updates for versioned data" can be enabled by adding in persistence.xml the following line:
<property name="hibernate.jdbc.batch_versioned_data">true</property>

But it doesn't eliminate the error...
My forum thread on JBoss forums is here

Epilog
After re-doing the entire thing from scratch, it worked like a charm. No clue what went wrong the first time, but I must've forgot some little thing like registring a -ds.xml for Oracle or something like that...

0 Comments:

Post a Comment

<< Home