Hi Orsi,
You're right that the JtaProcessEngineConfiguration was changed by resolving JIRA ACT-1188. This change was necessary to have the Activiti transaction context using the JTA transaction instead of the standalone transaction manager. And yes the default value of the transactionsExternallyManaged property is false. For the JtaProcessEngineConfiguration I think this is a bug because from my first thinking the transaction is always externally managed in the JTA configuration. So yes this has to be set to true for now to make this work.
The code that uses this transactionsExternallyManaged property is the following:
protected void initTransactionFactory() {
if (transactionFactory==null) {
if (transactionsExternallyManaged) {
transactionFactory = new ManagedTransactionFactory();
} else {
transactionFactory = new JdbcTransactionFactory();
}
}
}
And you need a ManagedTransactionFactory to make the JTA transaction config work.
The reason that you don't get an exception is probably related to the implementation of the JtaTransactionContext class.
If you invoke a commit just nothing happens, it's ignored. Maybe we should add a log message of level warn there to prevent this in the future.
Let me know if you still have questions or remarks.
Best regards,