Description:
|
Suppose this legal scenario (see 5.5.7. Injection point metadata) with SLSB bean {{Foo}} and request scoped bean {{Bar}}.
{code} @Stateless public class Foo { @Inject InjectionPoint injectionPoint; }
@RequestScoped public class Bar { @Inject Foo foo; } {code}
Field {{Foo#injectionPoint}} is null
(no {{UnsatisfiedResolutionException}} thrown!)
.
However the question is whether injection of {{InjectionPoint}} on SLSB should be possible. I think it may lead to inconsistencies - SLSB should not have any state as it is usually pooled and reused for every invocation.
|