Ant,

You bring some great points that I have to keep reminding myself of  - yes
that makes complete sense.  Being that JAX-RS is a JSR for performing REST
webservices it would definitely be in the interest of Tuscany to remain
protocol neutral to support REST for other impl types.

We'll study the Wink sample that you're referring to and see where to go
from here, thanks Ant!

-a-


On 3/20/10 5:49 AM, "ant elder" <[email protected]> wrote:

> 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