Luciano Resende wrote:
After playing around with exposing data as services [1] and some
off-line chat with Jean-Sebastien, he mentioned that it would be
interesting to start exposing data as feeds as well.

Implementation.data  comes to this purpose, It gives you a REST view
of a database table, and in conjunction with biding.feed it exposes
the database contents as ATOM Feeds and can easily be aggregated into
feed readers or other Web 2.0 feed-friendly solutions.

At the moment, this is a work in progress, and implementation.data is
only supporting the get portion of ATOM, and then work on other CRUD
operations.

I'm about to get a sample that demonstrate this new functionality
available, but you can also look at the companyFeed test scenario
available in the implementation itself, as it can give you further
understanding.

[1] http://www.mail-archive.com/tuscany-dev%40ws.apache.org/msg18908.html


If you configure you service with <binding.atom> the feed binding is now able to handle post, put, delete as well as get of individual entries using the Atom protocol, in addition to returning a feed containing the collection of entries.

I added the corresponding method skeletons to your CompanyFeed at [1]. They will need to be completed with code accessing the Company table to create, update, and delete the corresponding rows. The getCollection method currently returns an empty feed, it should be changed to add to the feed the entries representing each row in the Company table. I wanted to do it but was not sure how to get all the rows using the implementation.data API.

[1] http://svn.apache.org/repos/asf/incubator/tuscany/java/sca/modules/implementation-data/src/test/java/org/apache/tuscany/sca/implementation/data/companyFeed/CompanyFeed.java

--
Jean-Sebastien


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to