Thanks, I'll try that. But I'd really love to see a standard API for that...
Looks like this is part of https://issues.jboss.org/browse/CDI-174, but there doesn't seem to be much activity. Best regards, Harald 2012/8/31 Mark Struberg <[email protected]>: > After starting a new thread you must start a ReqeustContext for it manually. > > There is not yet an API for it, but you can do this in a portable way with > Apache DeltaSpike CdiControl. > > Just > @Inject ContextControl ctxCtrl. > > and invoke > ctxCtrl.startContext(RequestScoped.class); > > and it should work. >
