jsr345-experts@ejb-spec.java.net

[jsr345-experts] Re: Welcome to EJB 3.2!

From: Adam Bien <abien_at_adam-bien.com>
Date: Fri, 17 Jun 2011 15:14:20 +0200

On 17.06.2011, at 11:12, Pete Muir wrote:

>
> On 17 Jun 2011, at 08:59, Adam Bien wrote:
>
>>> Further, it would also mean deprecating and eventually removing @EJB style injection, and aligning @Resource and @PersistenceContext better with CDI style injection (not sure quite how we do this).
>>
>> +1. However: @EJB has a narrow scope and the container can provide more checks e.g. EJBs do not support inheritance in the way CDI managed beans do. I saw already "interesting" errors in projects because of this. +1, however, for deprecation.
>
> I think we can add any such required rules to the CDI spec - the CDI container does know if it injecting EJBs.

Great! Then we could deprecate another annotation. +1