As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
I know that probably this is a bad decision for the performance, but after finding a solution for the problem of persistence, we will try to start the Activiti engine as a GlassFish service, and obtain it with jndi.
- Making Activiti use the same Entity Manager that is used by the EJB, as it is configured with JTA.
- Making Activiti use a DataSource obtained from the container (with @Resource annotation).
<br> ProcessEngineConfiguration pec = ProcessEngineConfiguration.createProcessEngineConfigurationFromResourceDefault();<br> pec.setDataSource(datasource);<br> pec.setTransactionsExternallyManaged(true);<br> engine = pec.buildProcessEngine();<br>
Activiti doesnt yet (fully) work with JTA.
What do you exactly mean?. All the tests that I have made worked fine. I would like to know what could fail and in what circumstances.