The issue is that the CDI spec and EJB specs are not in alignment.  EJB
injection rules are at play here, and since they both implement the same
interface you are running into this issue.

If your classes were not annotated @Stateless this would not happen.


On Mon, Oct 28, 2013 at 4:13 PM, Chris Owens
<ctag+open...@chris-owens.com>wrote:

> My (beginner's) understanding of JSR-299 is that it recognizes
> parameterized
> types:
>
> MyInterface.java
>
>
> Class1.java
>
>
> Class2.java
>
>
> Class3.java
>
>
> I'm expecting var1 to be bound to a bean that implements Class2, but that
> isn't happening.   Do I misunderstand how JSR-299 uses generics?
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/CDI-Injecting-parameterized-types-tp4665761.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Reply via email to