[jboss-user] [jBPM] - Re: Drools, Spring integration and JTA in container
Fabio Wang
do-not-reply at jboss.com
Mon Apr 11 07:33:27 EDT 2011
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&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110411/dc2fd5ba/attachment.html
More information about the jboss-user
mailing list