Announcement Announcement Module
No announcement yet.
Event Propagation and Multiple Contexts Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Event Propagation and Multiple Contexts

    Looks like the events are not propagated from the parent context to the child.

    Here is the problem (Spring 2.0.2)

    1. ContextLoader (in web.xml) loads service-context.xml
    2. DispatcherServlet loads webapp-context.xml

    An application event is publshed from a service configured in the service-context.xml. When the listener is configured in the webapp-context.xml, the event not delivered to the listener. But when the listener is moved to the service-context.xml, it can receive the event.

    Is this the expected behavior?

    -- suresh --