Re: Singleton JAX-RS resource

2017-03-14 Thread Sergey Beryozkin
s filters that have to be included automatically by scanning. How can I create a singleton JAX-RS resource and still use auto scanning of @Provider capability. Can you explain please, how is this Application registered, do you use a cxf-rt-rs-http-sci module which ships ServletContextInitializ

Re: Singleton JAX-RS resource

2017-03-14 Thread Aruna Kalagnanam
;>>> like to make it application scoped. Using @Singleton doesnt work. >>>>> >>>>> I could override the getSingletons() method of my Application subclass, >>>>> but >>>>> doing that turns off auto scanning of @Provider clas

Re: Singleton JAX-RS resource

2017-03-13 Thread Sergey Beryozkin
could override the getSingletons() method of my Application subclass, but doing that turns off auto scanning of @Provider classes. Auto scanning is important for my application because I'm using a library which has filters that have to be included automatically by scanning. How can I cre

Re: Singleton JAX-RS resource

2017-03-13 Thread Sergey Beryozkin
or my application because I'm using a library which has filters that have to be included automatically by scanning. How can I create a singleton JAX-RS resource and still use auto scanning of @Provider capability. Can you explain please, how is this Application registered,

Re: Singleton JAX-RS resource

2017-03-13 Thread Aruna Kalagnanam
ride the getSingletons() method of my Application subclass, >> but >> doing that turns off auto scanning of @Provider classes. Auto scanning is >> important for my application because I'm using a library which has filters >> that have to be included automatically by sca

Re: Singleton JAX-RS resource

2017-03-13 Thread Sergey Beryozkin
e included automatically by scanning. How can I create a singleton JAX-RS resource and still use auto scanning of @Provider capability. Can you explain please, how is this Application registered, do you use a cxf-rt-rs-http-sci module which ships ServletContextInitializer ? Thanks, Sergey Thanks, Aruna.

Singleton JAX-RS resource

2017-03-11 Thread Aruna Kalagnanam
could override the getSingletons() method of my Application subclass, but doing that turns off auto scanning of @Provider classes. Auto scanning is important for my application because I'm using a library which has filters that have to be included automatically by scanning. How can I create a sin