[
https://issues.jboss.org/browse/JBRULES-2791?page=com.atlassian.jira.plug...
]
John Bize commented on JBRULES-2791:
------------------------------------
I tried to get some help with the fragile and broken DroolsSpringTransactionManager and it
was suggested that I reference my post here.
This is my post on the issue:
https://community.jboss.org/thread/203535
Can anyone offer some help or suggestions? Is this issue going to be addressed?
Thanks, John
Spring JpaTransactionManager should be used instead of both:
DroolsSpringTransactionManager and DroolsSpringJpaManager
----------------------------------------------------------------------------------------------------------------------
Key: JBRULES-2791
URL:
https://issues.jboss.org/browse/JBRULES-2791
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 5.1.1.FINAL, FUTURE
Environment: Spring Based Applications
Reporter: Anatoly Polinsky
Assignee: Mark Proctor
Labels: drools-flow, spring
Original Estimate: 2 days
Remaining Estimate: 2 days
Instead of having two different components: "DroolsSpringTransactionManager"
and "DroolsSpringJpaManager" that aim to do the work of
"org.springframework.orm.jpa.JpaTransactionManager", and trying to fit a JTA
model into it, the Spring's "JpaTransactionManager" itself should be used.
And instead of manually managing and constantly getting references to a "proper
entity manager" from JpaManger within a SingleSessionCommandService, a
@PersistenceContext should be injected. This will decouple SingleSessionCommandService
from JpaManager interface, and will allow _any_ JPA provider to inject an entity manager.
It has more benefits, such as trust in underline JPA providers ( e.g. Hibernate ) and
Spring Transaction Management capabilities to manage the process that they are actually
excellent at.
/Anatoly
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira