Hi

I have two MBs, MB1 and MB2

MB2 is SessionScoped
MB1 is ViewScoped

Both are JSF ManagedBeans

MB1 injects MB2 via

    @ManagedProperty(value="#{mB2}")
    private MB2 mB2;

    public void setMB2(MB2 mB2) {
        this.mB2 = mB2;
    }

Now, I have a filter that also gets MB2

        HttpSession session = ((HttpServletRequest)
httpRequest).getSession();
        MB2 mB2 = (MB2)session.getAttribute("mB2");

These two MB2 are different objects.

JSF and Filter use different sessions?

How can I access the same object from both contexts, for the same logged
user?

[]

Leo

Reply via email to