Is there a clean way to keep the Jbpm session open for the duration of the request? I'd like to take advantage of the lazy load functionality of hibernate but am unsure how to do this.
In the sample webapp, the session is managed manually with the PersistenceFilter and Context objects. I've tried the spring-jbpm project, but it's callback closes the session after each transaction.
Is there something like Spring's "OpenSessionInViewFilter" or "OpenSessionInViewInterceptor" available for the JbpmSession?
Any help in this area would be great -
Is reusing the filter mechanism not possible in your case then? Do you have additional constraints?