users@jax-rs-spec.java.net

[jax-rs-spec users] Re: CDI integration and _at_RequestScoped

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Wed, 18 Feb 2015 14:40:17 +0100

Hi Sergey,

Which runtime you are referring to? CDI runtime or JAX-RS runtime?

Marek

> On 18 Feb 2015, at 12:27, Sergey Beryozkin <sberyozkin_at_talend.com> wrote:
>
> Hi
>
> I've checked the spec and I'm not seeing any guidance re the scope of CDI JAX-RS root resource Beans, it only mentions that "providers or Application subclasses" have to be singleton or application-scoped.
>
> If a CDI root resource is annotated with @RequestScoped then does it mean the runtime is expected to ensure it is created once per every request ?
>
> Thanks, Sergey