I have a simple stateless session bean class with two constructors. The first one is default constructor without parameters. The second one has one parameter. The constructors are not annotated with @Inject annotation. When EJB Container instantiates the bean, it uses constructor with one parameter. But this is against the specification JSR 299:
If a bean class does not explicitly declare a constructor using @Inject, the constructor that accepts no parameters is the bean constructor.
Here are my sample classes:
P.S. If I add a second parameter to my constructor with parameter, an exception will be thrown: