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?
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?
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)?
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.
Gary P. Russell
Spring Integration Team
SpringSource, a division of VMware
Ok thanks Gary