[
https://issues.apache.org/jira/browse/MEECROWAVE-91?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16441489#comment-16441489
]
Mark Struberg commented on MEECROWAVE-91:
-----------------------------------------
Interestingly this is not even guaranteed by the spec.
The only thing which must work is to have the RequestContext active in
@PostConstruct.
Would be a good idea to fix it nonetheless.
> RequestScoped context not active for @Observes
> @Initialized(ApplicationScoped.class)
> -------------------------------------------------------------------------------------
>
> Key: MEECROWAVE-91
> URL: https://issues.apache.org/jira/browse/MEECROWAVE-91
> Project: Meecrowave
> Issue Type: Bug
> Affects Versions: 1.2.0
> Reporter: Mark Struberg
> Priority: Critical
> Fix For: 1.2.2
>
>
> {code}
> public void init(@Observes @Initialized(ApplicationScoped.class) Object
> initVal) {
> someRequestScopedBean.doSomething() // <- boom ContextNotActiveException
> }
> {code}
> This must work according to the CDI spec.
> Note that this is an integration issue in Meecrowave and no OWB core issue.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)