users@glassfish.java.net

Re: EJB with constructor injection not working in servlet

From: Harald Wellmann <harald.wellmann_at_gmx.de>
Date: Fri, 04 Nov 2011 19:27:23 +0100

Quoting from the EJB 3.1 spec, section 3.9.2 Bean Classes:

        The class must have a public constructor that takes no parameters.

It's not a CDI problem, your example simply doesn't comply with the EJB
spec.

Best regards,
Harald