I see. Well, this is a bit problematic. The main problem is that Weld
session context does not always synchronize with the underlying
HttpSession. There is a thread local bean store which is
"write-through", i.e. if attached any modifications are written to the
HttpSession immediately. But in
Hi,
The produced Foo should have been used before it's destroyed, but I'll
double check it's also used right before the destroy method is called in
the same thread. I'll try to make a simple reproducer as well if it still
doesn't work correctly then.
Kind regards,
Arjan Tijms
On Thu, Sep 15,
Hi Arjan,
a simple reproducer would be helpful. There are few edge cases around
session context and HTTP session which are problematic (e.g.
HttpSession.invalidate()).
Do you call some method on the produced Foo before you call destroy?
Because in Weld, normal scoped instances are created