All these problems are things that I believe can be addressed (with some caveats) by producer methods/fields.
The producer fields in the Web Beans RI are not currently working correctly, so it makes it hard for me to evaluate them in practice. If I get the opportunity, I will dig into to the problem, but suffice to say they are not producing new values even after the scope has been reset (such as between two requests). There is a reference that is not being released somewhere. I'll try to do a formal issue report with a concrete example.
I'm trying a shotgun approach with Seam 2.2.2.Final to no avail:
public static void removeContextVar(String varname) { log.debug("removed context var:" + varname); Contexts.getConversationContext().set(varname, null); Contexts.removeFromAllContexts(varname); Contexts.getConversationContext().flush(); }
How do you kill this thing?
Thanks,
Henry