Announcement Announcement Module
Collapse
No announcement yet.
Spring integration + Hibernate session management Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring integration + Hibernate session management

    To manage contextual sessions in web we use OpenSessionInViewFilter.
    What is the proper way to set up same logic in an async messages in Spring Integration?

  • #2
    I used channel interceptor for this purpose and it seems to work fine.
    Does postSend() method get executed after the whole chain finishes(as long as it stays in a same thread/transaction)?

    Comment


    • #3
      postSend() is called on each channel in turn as the thread returns so, yes, postSend is called on the firstChannel last, before returning to the inbound endpoint.

      Comment


      • #4
        Ok thanks Gary

        Comment

        Working...
        X