Results 1 to 5 of 5

Thread: Jbpm request session

  1. #1

    Default Jbpm request session

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

  2. #2
    Join Date
    Nov 2005
    Location
    Austria
    Posts
    38

    Default

    What do you mean with "session" and "request"?
    _________________________________
    Juergen Mayrbaeurl - Solution architect

  3. #3

    Default

    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. #4
    Join Date
    Nov 2005
    Location
    Austria
    Posts
    38

    Default

    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
    _________________________________
    Juergen Mayrbaeurl - Solution architect

  5. #5
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    Guys, if you have any suggestions, bugs or feedback pls use this thread.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •