jsr345-experts@ejb-spec.java.net

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

From: Pete Muir <pmuir_at_bleepbleep.org.uk>
Date: Fri, 17 Jun 2011 10:12:37 +0100

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.