JBoss Community

Re: TaskServer, persistence file and session

created by bpmn2user in jBPM - View the full discussion

I tried using UserTransaction as shown in https://github.com/droolsjbpm/droolsjbpm/blob/5.2.0.M1.x/drools-persistence-jpa/src/test/java/org/drools/persistence/session/JpaPersistentStatefulSessionTest.java

 

UserTransaction ut = (UserTransaction) new InitialContext().lookup( "java:comp/UserTransaction" );

        ut.begin();

        StatefulKnowledgeSession ksession = JPAKnowledgeService.newStatefulKnowledgeSession( kbase, null, env );

        ut.commit();

Reply to this message by going to Community

Start a new discussion in jBPM at Community