Hi, I have some jax-rs service beans deployed via Spring. I use the jaxrs:server tag with the beanNames attribute to specify my bean. My beans are in a custom spring scope.
Everything works fine, except that I notice that both Spring and cxf calls my @PostConstruct and @PreDestroy methods. I think this is a bit confusing. As cxf SpringResourceFactory delegate the resource lifecycle to spring, why is it calling itself the lifecycle methods ? In my case, the @Postconstruct is called twice at the first request (by spring then cxf). Then once per request (by cxf), whereas it is using an already existing instance. I would prefer cxf doesn't call the methods at all. Regards, Thibaut
