[
https://issues.apache.org/jira/browse/MEECROWAVE-91?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Struberg resolved MEECROWAVE-91.
-------------------------------------
Resolution: Not A Problem
I found a decent workaround.
Just use {{@javax.enterprise.context.control.ActivateRequestContext}} on that
method and be done.
> 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.5
>
>
> {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)