tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John D. Ament" <john.d.am...@gmail.com>
Subject Re: CDI Injecting parameterized types
Date Mon, 28 Oct 2013 20:20:17 GMT
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+openejb@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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message