title: How to bridge Spring Application Context events to an other context
body: <p>I have a Spring web application with two contexts: one (<code>applicationContext</code>) built by <code>ContextLoaderListener</code> and a second (<code>webContext</code>) built by <code>DispatcherServlet</code>.</p>
  
  <p>Within the <code>applicationContext</code> is a bean (<code>org.springframework.security.authentication.DefaultAuthenticationEventPublisher</code>) that fires spring context events.</p>
  
  <p>But the receiver for the event is defined in the <code>webContext</code>. And that receiver did not get the event. (If put the receiver for test purpose in the <code>applicationContext</code> then it get the event, but I can not do this, because I need the <code>webContext</code>s for its functionality.)</p>
  
  <p>So my question is, how to bridges the events from the <code>applicationContext</code> to <code>webContext</code>?</p>