users@jax-rs-spec.java.net

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

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Wed, 18 Feb 2015 11:27:02 +0000

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