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&...]