[jboss-user] [jBPM] - Re: TaskServer, persistence file and session

bpmn2user do-not-reply at jboss.com
Sat Mar 26 14:18:20 EDT 2011


bpmn2user [http://community.jboss.org/people/bpmn2user] created the discussion

"Re: TaskServer, persistence file and session"

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

--------------------------------------------------------------
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 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
[http://community.jboss.org/message/595753#595753]

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/20110326/172dbe07/attachment.html 


More information about the jboss-user mailing list