I'm considering the balance of annotations vs. XML config. There's not
much in a CXF controller that requires XML configuration (not for what
I've used CXF for so far). About the only reason I'm still defining the
bean in the XML config is that I have to put the bean into the
"jaxrs:serviceBeans" list, and I don't like to specify bean names in
annotations. It might be reasonable if I could have an annotation like
the following on my Controller:
@JAXRSRegister("MyJAXRSServerName")
On the other hand, perhaps I'm mistaken about what I need to configure
here. In the documentation, I found the following statement:
"Note that when registering a model from Spring you do not need to
declare a jaxrs server serviceBeans section - the runtime will
instantiate the beans itself."