1 Reply Latest reply on Feb 17, 2012 1:55 AM by Arun V G

    Reusing KnowledgeSession between different nodes in a cluster

    Affan Dar Newbie

      Is it possible to share the same ksession between two different nodes via something like this:

       



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


      StatefulKnowledgeSession ksession2 = JPAKnowledgeService.loadStatefulKnowledgeSession(1, kbase, null, env);

       

      ?

       

      The reason I am thinking about this is scaling out the processing of workflow instances (10k+ workflow instances / day in our scenario).

       

      If we can load the process instances and process them in multiple nodes then I can shard the sessions across databases and create a farm of processing nodes that are assigned to these shards. Does that make sense? New to jBPM so would appreciate any feedback.

       

      Thanks