On Jun 27, 2008, at 7:24 AM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED] > 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

Reply via email to