[
https://issues.apache.org/jira/browse/TOMEE-2103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16101741#comment-16101741
]
Romain Manni-Bucau commented on TOMEE-2103:
-------------------------------------------
Hi Svetlin, yes, it was to avoid to breaks apps not working in a CDI context
(ambiguous injections etc). CDI hasn't been backward compat here :(.
> [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)