Announcement Announcement Module
No announcement yet.
Analogous OpenEntityManagerInViewFilter Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Analogous OpenEntityManagerInViewFilter


    I'm transitioning an application that used to just be a webapp to also being a message endpoint. Currently every web request that comes into the system has an EntityManager opened and closed using a standard OpenEntityManagerInViewFilter.

    Now I have some "requests" coming into the app as Messages. What is the best way to ensure that all Endpoints/ServiceActivators have an EntityManager opened and closed for each Message? I imaging I could write a custom AspectJ aspect to do that, but I'm wondering if there is a more general solution to this? It doesn't seem that using a Spring-integration Filter is the correct pattern.

    Thanks for any recommendations.