[jboss-user] [jBPM] - jbpm5.3 - Spring - Manage KSessions

Pedro Gonçalves do-not-reply at jboss.com
Thu Jul 12 12:48:30 EDT 2012

Pedro Gonçalves [https://community.jboss.org/people/pgoncalves] created the discussion

"jbpm5.3 - Spring - Manage KSessions"

To view the discussion, visit: https://community.jboss.org/message/747824#747824

After some research in this forum and my understanding of chapter 5 of the docs, I came to the conclusion that I will need one knowledge session per process instance.

I use jbpm5.3, with spring integration and persistence.

*1* - For what I realized, the spring integration does not allow the "one knowledge session per process instance" architecture that I require. Is that true?

*2* - I've found the possibility of defining the id of the ksession that will be loaded during boot

<jbpm:ksession id="ksession" type="stateful" kbase="kbase1">
          <jbpm:jpa-persistence load="1">
               <jbpm:transaction-manager ref="transactionManager"/>
               <jbpm:entity-manager-factory ref="entityManagerFactory2" />

The load parameter allows to load the ksession with the given id, but it fails to do so the first time it boots (as there is no ksession in the DB). So, even if I consider to have only one ksession for all process instances, I will have to implement some workaround to load the app for the first time. It is supposed to be like that? (The goal is to create a config file that does not need to be changed)

Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120712/5b5e0555/attachment-0001.html 

More information about the jboss-user mailing list