JBoss Community

Re: Integrating jBPM 5 into web application - architecture

created by Jakub Ferschmann in jBPM - View the full discussion

Ok,

can I use one kSession for all process instance in web application? If kSession will load every request (different thread) from the database, is it thread safe?

In jBPM3 I can use one context with default name for every interaction with workflow engine. Context is not stored in the database and it is unlike jBPM5

 

JbpmConfiguration config;

....

try {

    context = config.createJbpmContext(JbpmContext.DEFAULT_JBPM_CONTEXT_NAME);

 

   .... // do something with context

} finally {

    if (context != null) {

        context.close();

    }

}

Reply to this message by going to Community

Start a new discussion in jBPM at Community