1 Reply Latest reply on Aug 25, 2011 1:36 PM by S Root

    jBPM in Websphere

    John Soundrakumar Newbie



      Does jBpm work in websphere.?   Does it need Bitronix transaction manager only to work?  I ve created a  simple process definition with start, task1, task2, end.  I am able to complete the task1 when I start the process. In my web applicaiton I am reloading the StatefulKnowledgeSession from the database and  I register a workitem handlder



      StatefulKnowledgeSession ksession = JPAKnowledgeService.loadStatefulKnowledgeSession(sessionid , kbase, null);


      ksession.getWorkItemManager().registerWorkItemHandler("Human Task", th);



      ksession.getWorkItemManager().completeWorkItem(wit.getId(), null);


      the work item is not getting saved and wit.getId throwing null pointer exception.  the same taskhandler persists in the first task1 without any problem.


      Any clues?  thanks for your help.




      TestWorkItemHandler th = new TestWorkItemHandler();

        • 1. Re: jBPM in Websphere
          S Root Newbie

          It's been a month since you asked but short answer to the question is yes, it works, Bitronix is not required. I'm using WAS7 with Oracle 10G.


          TransactionManager TM =

          new WebSphereTransactionManagerLookup().getTransactionManager(new



          and then in your persistence.xml:



          property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.WebSphereTransactionManagerLookup"