Hi
On 14/10/13 13:17, Winnebeck, Jason wrote:
On 14/10/2013 01:17, Jim Talbut wrote:
I /think/ this is breaking because the proxy for the PreAuth is meaning that
the @Context annotation isn't being detected by CXF.
Can that be fixed?
I don't have experience CXF + Spring Security directly, but I am using Spring
and it had to create a proxy for a CXF service, and all of my @Context fields
stopped being injected. This makes sense because CXF inspects the generated
proxy class instead of the proxy's delegate. For me the solution was to convert
@Context fields to @Context setter methods like @Context setUriInfo(UriInfo
uriInfo), and these methods will be present on the proxy so CXF can call them.
So, this might be the same problem you are running into.
thanks for that, yes, the setters will work with Spring proxies.
Cheers, Sergey
Jason
----------------------------------------------------------------------
This email message and any attachments are for the sole use of the intended
recipient(s). Any unauthorized review, use, disclosure or distribution is
prohibited. If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message and any attachments.