2014-10-14 14:37 GMT+04:00 Sergey Beryozkin <[email protected]>:

>
>
>>  I'm not sure the auto-discovery can work well with the Spring mechanism
> of dealing with non-singleton contexts. In Spring one has to declare scopes
> like "prototype", etc, see
>
> http://cxf.apache.org/docs/jaxrs-services-configuration.html#
> JAXRSServicesConfiguration-FromSpring
>
> i.e, the bean classes have to be declared which leaves no space for the
> auto-discovery.
>
> May be an annotation such as @PerRequest can be added which will take
> effect only during the auto-discovery phase. I'll think about it
>
May be annotation   javax.enterprise.context.RequestScoped suits ?
This anotation adds Netbeans when I create Restfl service from Patterns

Reply via email to