Is it possible to inject a CDI Bean into a static variable in Java EE 6?
It’s not possible currently, but it’s not impossible in theory. The other answer suggests that it’s not possible, but the explanation describes the way injection worked in Seam 2. I’ll try to describe it from memory. Some pseudocode: @Name(“a”) class A() { @In B b; void something() { b.doTheThing(); } } Seam 2 supported injection … Read more