On Fri, Mar 19, 2010 at 8:55 PM, Albert Tsang <[email protected]> wrote:
> Hi All,
>
> I was reading through last year’s email threads on implementing JAX-RS
> support.  It looks like a developer from a customer company had gone down
> their own implementation route  of supporting bolt-ing on Jersey and putting
> an interceptor in place to refer REST interface requests to Jersey’s servlet
> as a handler.  Has anyone made any headway on implementing a REST binding
> following JAX-RS?  This would be extremely valuable and the rest of the Web
> 2.0 space.  We’re looking to head into this direction and want to leverage
> anything that’s out there already, thanks!
>
> -a-

Nothing has been done in Tuscany yet for JAX-RS integration yet. One
reason for that is its quite hard to see how to map from JAX-RS to an
SCA binding or implementation type that would work in a protocol
neutral way, eg a binding.jaxrs that would work with any SCA
implementation or a implementation.jaxrs that would work with any SCA
binding.

An alternative approach to a new binding or implementation type could
be to give JAX-RS resources support for using SCA annotations. That
seems like it would be more straight forward than a JAX-RS binding or
implementation type and its a similar approach to whats in the SCA JEE
spec. There's an example of what that could look like is at
https://svn.apache.org/repos/asf/tuscany/collaboration/wink-helloworld-sca
which is the Apache Wink helloworld example updated to use an SCA
reference in the HelloWorld resource. That sample doesn't actually
work yet as Wink didn't have a hook point for the resource creation
that Tuscany could use, they did say though that they could quite
easily add one. Would this approach be of any use for you?

   ...ant

Reply via email to