Announcement Announcement Module

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions ( project, this forum has been decommissioned in favour of Spring Extensions one at:

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Costin Leau
SpringSource - Spring Training, Consulting, and Support - "From the Source"
See more
See less
Jbpm request session Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Jbpm request session

    Is there any way to implement a "one session per request" pattern with the spring-jbpm project?

  • #2
    What do you mean with "session" and "request"?


    • #3
      A way to keep the jbpm session open for the duration of the request. Similar to the "OpenSessionInView/Interceptor" offered for hibernate.

      The current implementation of JbpmTemplate closes the session in the callback, so you get a lazy initialization exception when trying to access uninitialized fields later in the app or jsp.


      • #4
        One solution would be to create something similar to the HibernateInterceptor, which keeps the Hibernate session open.
        Another way would be to use the TransactionProxyFactoryBean (I'm using this approach for my requests, but it assumes that you'll have inserts or updates).

        Kind regards


        • #5
          Guys, if you have any suggestions, bugs or feedback pls use this thread.