Currently we have a a RESTful API using CXF 2.4.2. In one of my resource methods, I would like to process some query parameters and store the result in the CXF message exchange
The easiest, if using CXF, is to just do:
PhaseInterceptorChain.getCurrentMessage()
That will work in JAXWS and JAXRS services.