tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Blevins <david.blev...@visi.com>
Subject Re: EJBContext cannot be injected in 3.1-SNAPSHOT
Date Fri, 27 Jun 2008 20:33:03 GMT

On Jun 27, 2008, at 7:24 AM, <Karsten.Ohme@t-systems.com> <Karsten.Ohme@t-systems.com

 > wrote:

> Hi,
>
> I can inject the session context successfully with:
>
>    @Resource
>    private SessionContext ctx;
>
> But when I only what to have the EJBContext
>
>    @Resource
>    private EJBContext ctx;
>
> it cannot be injected.
>
> Is this intended? Well, SessionContext is fine, but I was wondering  
> why
> the super interface cannot be injected.

In general, we don't check isAssignable on injection types, primarily  
cause it gets very hairy around business interfaces.  But we could  
probably support this particular use case.

-David


Mime
View raw message