I completely agree with Peter's answer, but there is another way to do this: you do all your beans presentation (RESTEasy or JAX-WS, which are not Spring components), extending SpringBeanAutowiringSupport .
That way, you can easily embed your Spring services on @Autowired annotations in these classes.
source share