openwebbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harald Wellmann <hwellmann...@gmail.com>
Subject Re: Request context in Java SE
Date Fri, 31 Aug 2012 14:17:29 GMT
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 <struberg@yahoo.de>:
> 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.
>

Mime
View raw message