In WELD 2, it move the conversation scope to Servlet (default init in the Servlet Listener).
For typical JSF2 web app, it translate some static resource with extends of .jsf, for example "jsf.js.jsf", "jquery.js.jsf", also there are some other static resources (css, png, jpg, gif, css, js), when the request for the static resources is received, the initial context will be triggered.
Right now I have to extended the default org.jboss.weld.environment.servlet.Listener & org.jboss.weld.servlet.ConversationFilter to filter the request url, only activate context on the real request and skip the static resources request.
here is what I did:
Can we do something in the WELD listenr and filter to test if request has attribute, if they have then active the context, otherwise just defer to the normal process?