Hi Dennis,
Thank you for answering.
dennisbyrne wrote:
maybe you can elaborate on how jta is being used here?
In my other projects, I use the JOTM transaction manager inside the Jonas container.
dennisbyrne wrote:
session.beginTransaction().commit() starts and commits the transaction in one line of code. try starting the transaction, actually doing work, and then committing .
According to the API doc,
session.beginTransaction().commit() start a new transaction only if necessary, so I guess there is already an existing transaction when I'm calling
session.beginTransaction(), don't you think ?
The following code actually works :
Code:
Transaction tx = session.beginTransaction();
...
tx.commit()
But I just can't explain why
session.connection().setAutoCommit(true) does not work...
Best regards.
--
Xavier Bugaud