On 01/07/14 16:33, David Karlsen wrote:
Great - that worked just fine!
Maybe the wiki should be updated?

Sure, I should've done it earlier, Colm reported it too.
I updated the migration page and that wiki page

Cheers, Sergey


2014-07-01 16:27 GMT+02:00 Sergey Beryozkin <[email protected]>:

Hi

On 01/07/14 14:35, David Karlsen wrote:

Looking at
http://cxf.apache.org/docs/jax-rs-and-jax-ws.html "Dealing with
context", a
MessageContext is @Resource injected into the example.
I guess this is a
http://cxf.apache.org/javadoc/latest-3.0.x/org/apache/cxf/
jaxrs/ext/MessageContext.html
with it's imp:
http://cxf.apache.org/javadoc/latest-3.0.x/org/apache/cxf/
jaxrs/ext/MessageContextImpl.html
.
However i don't see a default constructor for it (it requires a Message),
and such I don't understand how it gets injected in the example - am I
missing out of something?
I need to create a utility which get's access to the CXF internal
contexts,
to get access to ResourceInfo, http headers and so on.

  Starting from 3.0.0 it needs a @Context annotation. Supporting @Resource
annotations is limited to 2.7.x only. If it is a singleton then a thread
safe proxy is injected at startup and then MessageContextImpl instances are
inserted into it at runtime

Thanks, Sergey









Reply via email to