On Fri, Jun 27, 2008 at 10:33 PM, David Blevins <[EMAIL PROTECTED]> wrote:

> 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.

I think we have to as 16.15 EJBContext References is pretty clear on it:

The container must make a component's EJBContext interface available
either through injection using the Resource annotation or in JNDI
under the name java:comp/EJBContext. The authenticationType and
shareable elements of the Resource annotation must not be specified.

and further on:

The Bean Provider is responsible for requesting injection of an
EJBContext object using a Resource annotation or using the defined
name to lookup the EJBContext object.

and finally:

The Container Provider is responsible for providing an appropriate
EJBContext object to the referencing component. The object returned
must be of the appropriate specific type for the bean requesting
injection or performing the lookup—that is, the container provider
must return an instance of the SessionContext interface to referencing
session beans and an instance of the MessageDrivenContext interface to
message-driven beans.

Karsten, would be willing to file a jira issue?

Jacek

-- 
Jacek Laskowski
Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl

Reply via email to