Why I can not implement the logic directly in resource classes of CXF RS
------------------------------------------------------------------------
Key: CAMEL-3474
URL: https://issues.apache.org/jira/browse/CAMEL-3474
Project: Camel
Issue Type: Improvement
Components: camel-cxf
Affects Versions: 2.5.0
Environment: Apache ServiceMix, Linux
Reporter: Ali Yang
I know resource classes in CXF RS just like a configuration, used to map rest
paths with operation names. After doing that, I have to use the operation name
to navigator to the real method which implement the logic. Or I have to reflect
to invoke the methods of resource classes, like the way to invoke the method of
BookStoreImpl, in "camel-example-cxf".
So my question is why Camel do not provide the function to simplify that. I do
not think the programer should write code to reflect method invocation.
P.S. what's the pros and cons, compare with use CXF directly and use Camel CXF
component as a Web Service server.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.