[ https://issues.apache.org/jira/browse/TOMEE-2103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16101701#comment-16101701 ]
Svetlin Zarev commented on TOMEE-2103: -------------------------------------- This happens because DeploymentLoader::discoverModuleType classifies the app as EjbModule, but (default, empty) beans.xml is added (to altDD) only if the app is classified either as WebModule or AppModule. > [Embedded TomEE] CDI should be enabled by default > ------------------------------------------------- > > Key: TOMEE-2103 > URL: https://issues.apache.org/jira/browse/TOMEE-2103 > Project: TomEE > Issue Type: Bug > Reporter: Svetlin Zarev > Attachments: org.example.zip > > > Since JavaEE7 CDI should be enabled by default (i.e. it should not require > beans.xml) > Expected output of the attached app (or when beans.xml is present): > {code} > AroundConstruct: before > constructor > AroundConstruct: after > post-construct > AroundInvoke: before > work > AroundInvoke: after > {code} > Actual output: > {code} > constructor > post-construct > AroundInvoke: before > work > AroundInvoke: after > {code} > As you can see the @AroundConstruct is not invoked. This happens only in the > case of embedded tomee -- This message was sent by Atlassian JIRA (v6.4.14#64029)