[jboss-user] [jBPM] - Re: Integrating jBPM 5 into web application - architecture

Jakub Ferschmann do-not-reply at jboss.com
Thu Jun 21 08:48:03 EDT 2012


Jakub Ferschmann [https://community.jboss.org/people/fersmi] created the discussion

"Re: Integrating jBPM 5 into web application - architecture"

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

--------------------------------------------------------------
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
[https://community.jboss.org/message/743367#743367]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120621/9f242e5e/attachment.html 


More information about the jboss-user mailing list