[jboss-user] [jBPM] - JBPM4.4 in a Web app

mvermand do-not-reply at jboss.com
Wed Mar 13 16:33:58 EDT 2013

mvermand [https://community.jboss.org/people/mvermand] created the discussion

"JBPM4.4 in a Web app"

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


I am trying to improve the way I use JBPM4.4 in a Web app (ADF @Weblogic).
Now, I have an initialization listener in the web app which instanciates an ENUM object holding reference to the different JBPM services (RepositoryService, TaskService...).
But no dedicated environment is created for the HTTP Request, so JBPM creates and closes a lot of hibernate transactions (in different environment instances).
This throws the use of the JBPM (ProcessDefinition) Cache over board.

I would like to create an Environment object ( environmentFactory.openEnvironment() ) in a Servlet Filter and keep/use this environment instance throughout the handling of the HTTP Request.
In this way I can get objects from the JBPM Cache.

Is this the correct way of doing?
Where can I find any documentation on this?



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/20130313/4eff1acc/attachment.html 

More information about the jboss-user mailing list