You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "David Blevins (Commented) (JIRA)" <ji...@apache.org> on 2012/02/08 22:28:59 UTC
[jira] [Commented] (OPENEJB-1767) Validation: Allow missing no-arg
constructor for beans with @Inject constructor
[ https://issues.apache.org/jira/browse/OPENEJB-1767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13204012#comment-13204012 ]
David Blevins commented on OPENEJB-1767:
----------------------------------------
In strict terms the EJB spec requires a no-arg constructor. CDI however allows for an @Inject constructor.
In the case where there is an @Inject constructor, the strict check for a no-arg constructor should be avoided.
http://stackoverflow.com/questions/9173592/can-i-use-cdi-constructor-injection-for-ejbs
> Validation: Allow missing no-arg constructor for beans with @Inject constructor
> -------------------------------------------------------------------------------
>
> Key: OPENEJB-1767
> URL: https://issues.apache.org/jira/browse/OPENEJB-1767
> Project: OpenEJB
> Issue Type: Sub-task
> Components: deployment, ejb3 simplified
> Reporter: David Blevins
> Fix For: 3.1.x
>
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira