Hi Dan,

Sorry, I phrased my question badly. I don't know if this one will be much 
better ;)

I'm unclear on a couple of points:

* whether using CXFServlet means I can embed in a separate container rather than the bundled Jetty (I think yes)

* how the REST endpoints get configured i.e. where things like .setWrapped(false) and configuring the JSON namespace mapping happen if the endpoints are being exposed directly via the implementing class using either XML or using Endpoint.create()

I know how to authenticate URL resources using normal Jetty. I just don't quite understand how to publish my REST services inside a servlet.

I have read http://cwiki.apache.org/CXF20DOC/servlet-transport.html and looked at the samples, but they didn't really clear anything up for me. All of the servlet examples appear to be SOAP-based services and non-portable to REST-based services as far as I can see.

Cheers,

Phil

Dan Diephouse wrote:
Hi Phil,

I am not sure how to configure the Jetty transport to use authentication,
but if you use the servlet transport it is a matter of configuring your
servlet container. I would recommend that you look at your servlet
container's documentation for guidance on how to do this. For example:
http://docs.codehaus.org/display/JETTY/Realms

Regards,
- Dan

On 3/9/07, Phil Wilson <[EMAIL PROTECTED]> wrote:

Hi,

I've been writing a REST-basd service based on the cxf-rest sample, and it
all works just
fine.

I want to start authenticating this service and for my needs the best way
seems to be by
using HTTP Digest (which then authenticates against an LDAP realm).

I'm guessing the best way, since Jetty already appears to be in use, to do
this is to
embed my services inside a servlet and rely on the container's native
Digest and realm
support, but I don't see how to do it. I've looked at the CXFServlet code
and samples and
don't immediately see how these could be configured for my needs.

Am I going about this the right way? If so, what should I be doing to get
things running
how I want?

Any help welcomed,

Phil Wilson





Reply via email to