0 Replies Latest reply on Jul 4, 2006 6:39 AM by einali

    nested jbpmcontext.create and close

    einali

      Hi Dear Friends
      I am integrating jbpm in legacy system that user database as middleware between users ;
      jbpm work in every client and synchronize by using single Database ;
      i use jbpmcontext.create to load jbpm object and
      when an action done I have to save single object immediatly
      between jbpmcontext.create and close loop
      Unfotunaty i see cann't close hibernate session Exception;
      does any body know better job ?


      try{
      jbpmcontext= jbpmConfiguration.createJbpmContext();

      ..... load objects ...

      try{
      jbpmcontext2= jbpmConfiguration.createJbpmContext();

      jbpmcontext2.save(someTaskInstance);


      }finally{
      jbpmcontext.close()
      }


      }finally{
      jbpmcontext.close()
      }