Claudio Heiman [
http://community.jboss.org/people/claudioh77] created the discussion
"Slow Performance in MultiThread"
To view the discussion, visit:
http://community.jboss.org/message/537843#537843
--------------------------------------------------------------
Hello
I use jBPM 3 in standalone mode
Each client creates a JbpmContext executes several BPM and closes JbpmContext.
The first implementation of BPM is slower than subsequent executions, since this creates
the SessionFactory for Hibernate, the others are fast.
If 2 or more clients simultaneously run every first execution of a bpm by a thread becomes
very slow. Why ?
It seems that the piece of code is slow when I call JbpmContext.newProcessInstace (bpm).
How can I fix? The Hibernate SessionFactory can be singleton?
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/537843#537843]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]