[
https://jira.jboss.org/jira/browse/JBPM-1307?page=com.atlassian.jira.plug...
]
Mauro Molinari commented on JBPM-1307:
--------------------------------------
Sorry, I hadn't received e-mail notifications!!!
Now, I'm going to try jBPM 3.3.0GA to see if the problem is fixed.
First of all, I have to succeed in getting jBPM from that 3.3.0GA
installer.................
Mauro.
jBPM tries to use Hibernate transaction even if configured with
isTransactionEnabled = false
--------------------------------------------------------------------------------------------
Key: JBPM-1307
URL:
https://jira.jboss.org/jira/browse/JBPM-1307
Project: JBoss jBPM
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Core Engine
Affects Versions: jBPM 3.2.2
Reporter: Mauro Molinari
Assignee: Alejandro Guizar
The method
org.jbpm.scheduler.db.DbSchedulerService.deleteTimersByProcessInstance(ProcessInstance) is
accessing the Hibernate transaction even if jBPM is configured not to use transactions:
<service name="persistence">
<factory>
<bean
class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
<field name="isTransactionEnabled">
<false />
</field>
<field name="isCurrentSessionEnabled">
<true />
</field>
</bean>
</factory>
</service>
This causes a serious problem when you're using jBPM inside a JTA environment and you
want to control JTA transactions by yourself. For instance, we're using Spring to
manage transactions a JBoss Transactions as the JTA implementation. We are not using JNDI
in any way, but when we try to call processInstance.end(), a call to
org.jbpm.scheduler.db.DbSchedulerService.deleteTimersByProcessInstance(ProcessInstance) is
performed and Hibernate tries to create a new JTATransaction by querying an empty JNDI
InitialContext.
The only workaround we could find is the one outlined here:
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117325#...
that is, subclassing JobSession in order to use Spring TransactionSynchronizationManager.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira