Hi Christian -
Your guidance in the matter, is very valuable. I'm also about to start
work on a large integration project using jaxrs and have been thinking
about the same questions. i.e. separation of concerns, SRP.
Could I be so kind and ask - have you written more on the subject? Do
you have any examples which you'd recommend as a good reference? Any
books cover this area?
Also can I ask when implementing webservices, did you discard the idea
of using cxfrs? I was thinking of using cxfrs to receive payloads,
translates theses to a message (a command message as such) and dispatch
these to routes for processing (sync, or async depending on the service
type i.e. short service, or workflow service). As recommend - the
business logic would in POJOs as would the messages. If the business
logic need to call any integration functionality, it would do so using a
camel proxy (producer template) against an interface.
I guess my question is - when would you use cxfrs for a service
endpoint, and when would you not use camel and use cxf (jaxrs in my
case) directly.