1 2 Previous Next 17 Replies Latest reply on Oct 12, 2011 2:09 PM by freemarket.hkatz.iscs-i.com Go to original post
      • 15. Re: Removing or replacing a contextual bean
        gavin.king

        All these problems are things that I believe can be addressed (with some caveats) by producer methods/fields.

        • 16. Re: Removing or replacing a contextual bean
          dan.j.allen

          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.

          • 17. Re: Removing or replacing a contextual bean
            freemarket.hkatz.iscs-i.com

            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

            1 2 Previous Next