You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "Lambert, Michael" <mi...@michaellambert.com> on 2014/09/23 22:08:22 UTC

cxf-rs proxy

I am trying to proxy calls from the camel/integration layer of my
architecture to my services layer.

The services themselves are implemented using Spring REST.

I would like to use camel to intercept requests to our services, run XACML
rules against these requests, and then (presuming the call is authorized)
forward these requests to the actual services for execution.

Doing this with CXF components is trivial as CXF supports XACML. How though
can I do this if I have no JAX-RS classes to initialize a cxf-rs
interceptor with?

I would love to be able to accepts ANY request, run CXF interceptors and
then proxy that same call down to some arbitrary other service (what if the
rest service is implemnted in Ruby?).

Is this possible? What is the best approach?

Using a servlet component to proxy the call works but I cannot use CXF to
perform processing in that case.

Also, any interest in a XACML processor that can be used as a PEP outside
CXF? The same rules should be able to also protect JMS/file submission etc.

Thanks,

Mike

Re: cxf-rs proxy

Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi
On 23/09/14 21:08, Lambert, Michael wrote:
> I am trying to proxy calls from the camel/integration layer of my
> architecture to my services layer.
>
> The services themselves are implemented using Spring REST.
>
> I would like to use camel to intercept requests to our services, run XACML
> rules against these requests, and then (presuming the call is authorized)
> forward these requests to the actual services for execution.
>
> Doing this with CXF components is trivial as CXF supports XACML. How though
> can I do this if I have no JAX-RS classes to initialize a cxf-rs
> interceptor with?
>
> I would love to be able to accepts ANY request, run CXF interceptors and
> then proxy that same call down to some arbitrary other service (what if the
> rest service is implemnted in Ruby?).
>
> Is this possible? What is the best approach?
>
> Using a servlet component to proxy the call works but I cannot use CXF to
> perform processing in that case.
>
May be you can use CXF RS proxy using a web client/HTTP API, or even CXF 
JAX-WS Dispatch client ?

Cheers, Sergey
> Also, any interest in a XACML processor that can be used as a PEP outside
> CXF? The same rules should be able to also protect JMS/file submission etc.
>
> Thanks,
>
> Mike
>


-- 
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com