Fabio Wang [
http://community.jboss.org/people/fabiowg] created the discussion
"Re: Drools, Spring integration and JTA in container"
To view the discussion, visit:
http://community.jboss.org/message/599191#599191
--------------------------------------------------------------
Hi,
I've just noticed that the code of initTransactionManager you sent was a bit different
from the one I was analyzing. I'm using Drools version 5.2.0.M1.
In fact, there doesn't seem to be a way to pass a PersistenceContextManager through
the environment in version 5.1.x. So I think the easiest way to make it work would be to
subclass the SingleSessionCommandService, override the initTransactionManager, where you
would lookup the transactionManager in the environment using any key you like), and then
manually instantiate a CommandBasedStatefulKnowledgeSession.
I just came up with this idea, so I don't know if it works at all.
(By the way, ptm is supposed to be the spring PlatformTransactionManager, so yes, it could
be a JtaTransactionManager).
What a mess, huh?
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/599191#599191]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]