Announcement Announcement Module
Collapse

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions (http://www.springsource.org/extensions) project, this forum has been decommissioned in favour of Spring Extensions one at:
http://forum.springsource.org/forumdisplay.php?f=44

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.

Cheers,
Costin Leau
SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
http://twitter.com/costinl
See more
See less
Jbpm request session Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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"?

    Comment


    • #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.

      Comment


      • #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
        Juergen

        Comment


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

          Comment

          Working...
          X