posted 15 years ago
Not really: You can inject, for example, an EJBContext
@Resource private EJBContext ctx;
in a MDB (and use it - works fine). But
ctx instanceof(MessageDrivenContext)
will be true. That means even if you declare an EJBContext, the container will provide a reference to the sub-interface.
SCJP 5 (98%) - SCBCD 5 (98%)