[jboss-user] [jBPM] - Re: How to fix: "The chosen transaction strategy requires access to the JTA TransactionManager" issue?

Demian Calcaprina do-not-reply at jboss.com
Wed Aug 10 13:20:01 EDT 2011


Demian Calcaprina [http://community.jboss.org/people/calca] created the discussion

"Re: How to fix: "The chosen transaction strategy requires access to the JTA TransactionManager" issue?"

To view the discussion, visit: http://community.jboss.org/message/620438#620438

--------------------------------------------------------------
You provide the transaction manager when creating the session. Something like:
Environment env = KnowledgeBaseFactory.newEnvironment();
                    env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf);
*                    env.set(EnvironmentName.TRANSACTION_MANAGER,*
*                                        TransactionManagerServices.getTransactionManager());*
                    final StatefulKnowledgeSession session = JPAKnowledgeService
                                        .newStatefulKnowledgeSession(kbase, null, env);

Regards,

Demian
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/620438#620438]

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/20110810/3ebd1e65/attachment.html 


More information about the jboss-user mailing list