Hi, Pradeep.

Thank you for your interest. In Tuscany SCA, we already have a few bindings including binding.atom and binding.rss that support the RESTful style. To model an SCA component as a web resource, it has to follow certain patterns. At this moment, we use SPIs [1] to define the resources. And the SCA components that are configured with binding.atom or binding.rss have to "implement" the SPIs.

JAX-RS APIs provide a set of annotations and associated classes/interfaces that may be used with POJOs in order to expose them as Web resources. The specification also defines object lifecycle and scope. We can take advantage of the JAX-RS POJOs as the implementations for RESTful services. Here are a few thoughts I have in mind:

1) Support the JAX-RS POJOs as the SCA component implementation for RESTful bindings such as binding.atom or binding.rest (TBD) 2) Integrate the JAX-RS engine with Tuscany's ServletHost SPIs which is an extension point to plug in HTTP containers. 3) Integrate the data representations (media types, encoding) of JAX-RS web resources with Tuscany's databinding framework to facilitate flexible data formats. 4) Explore the client APIs (not defined by the JAX-RS spec) to help SCA components to consume RESTful services.
5) Anything else that are interesting ... use your creativity here.

Thanks,
Raymond

[1] http://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/modules/data-api/src/main/java/org/apache/tuscany/sca/data/collection/
[2] http://www.infoq.com/news/2008/10/jaxrs-comparison

--------------------------------------------------
From: "Pradeep Fernando" <[email protected]>
Sent: Tuesday, March 10, 2009 2:33 AM
To: "tuscany-dev" <[email protected]>
Subject: [GSOC 2009] implementing JAX-RS support.

Hi devs,

I Pradeep Fernando is undergraduate student from computer science &
Engineering Dept, University of Moratuwa
Sri Lanka.While I was searching for appropriate  project for this
summer i came across your wiki [1].
Out of these project ideas, I'm really interested in

Add an implementation type to support JAX-RS so that we can provide RESTful services.

Currently I'm going through tuscany quickstart guide & other
documents. I went through the JAX-RS specification
(jsr-311) . It is an annotation based mechanism to enable RESTful
support.Though I understand the specification
for some extent i don't have an idea about how to implement this in
Tuscany, since i don't have a broad knowledge
in tuscany implementation. So your ideas , tips, guidelines are mostly welcome.

I have prior experience in the web-services domain & REST.I have
contributed to apache axis2 as a developer to enhance its
REST capabilities.So Im very much familiar with java & xml. Think I'm
in a good position to take up this project. wdt?

Plz give your suggestions & ideas,

cheers,
Pradeep Fernando.

[1]http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Google+Summer+of+Code+2009

Reply via email to