title: How do I get a ConversationScoped CDI bean from inside a Filter?
body: <p>Getting a <code>@SessionScoped</code> CDI bean from inside a Filter is <a href="https://stackoverflow.com/questions/7815308/how-do-i-get-a-sessionscoped-cdi-bean-from-inside-a-filter">relatively easy</a>. But trying to inject a <code>@ConversationScoped</code> bean throws the following error:</p>
  
  <pre><code>org.jboss.weld.context.ContextNotActiveException:
  WELD-001303 No active contexts for scope type javax.enterprise.context.ConversationScoped
  </code></pre>
  
  <p>This is independent of whether or not a conversation is currently active. It seems like CDI can not determine whether a transient or active conversation should be used because my filter happens before whatever provides the context for <code>@ConversationScoped</code> beans.</p>
  
  <p>What kind of filter / interception mechanism could be used that happens "late enough"?</p>