users@servlet-spec.java.net

[servlet-spec users] metadata-complete="true" and _at_EJB injection

From: Philippe Marschall <kustos_at_gmx.net>
Date: Mon, 11 Nov 2013 09:29:10 +0100

Hi

I'm a bit unsure of the behavior of metadata-complete="true" and @EJB
(and @Resource) injection. Let's say I have a servlet defined in a
web.xml with metadata-complete="true". The servlet uses @EJB to get hold
of an EJB. The EJB is inside an EJB-JAR inside the same EAR file as the
WAR file. However there is no env-ref, resource-ref or ejb-ref in the
web.xml. Is this supposed to work or not supposed to work?

Cheers
Philippe