To the thread, (Jeffs pointers are correct)
By default, OOTB, shindig runs an in memory JSON implementation of the
Service Provider Interfaces (SPI), obviously there is no update
mechanism and it only provides what is necessary to support the Open
Social API (ie read only).
In addition, there was a Java Persistence API (JPA) implementation of
the Shindig Social SPI. This can be found in java/samples.
If you want to create a full social container where the UI can update
the social data, then this *might* be a good place to start. Included
in samples is configuration for both Hibernate JPA and EclipseLink
JPA. And the Unit tests exercise and validate the implementation for
both read and write. The write side is not formally exposed as the
Shindig Social SPI is a) tuned for gadgets and b) read-only, but it
would not be hard to create some additional services that took the JPA
Entities and provided end points to update them. (this is what the
Unit tests do).
AFAIK, the code in java/samples has been tested on Apache Derby and
MySQL although both JPA providers support about 12 other databases.
HTH
Ian
On 1 Sep 2009, at 18:26, Wang, Jeff (CTSI) wrote:
org.apache.shindig.social.opensocial.spi.ActivityService should
exist. It is an interface, and you would need to implement
everything that is there. Similarly, AppDataService and
PersonService are there (in the same place.) You would need to
implement all 3 for your container.
You need to register your customizations to Shindig with Guice
handlers, this involves a change to the web.xml - there's a context
parameter called guice-modules, add your module there. For an
example of how the modules are created, take a look at
org.apache.shindig.social.sample.SampleModule .
Jeff
-----Original Message-----
From: Angelo Andrade [mailto:[email protected]]
Sent: Monday, August 31, 2009 10:38 AM
To: [email protected]
Subject: Shindig - Database Integration
<[email protected]>Hey guys,
I'm trying to use Shindig with a external database, so I can create
and use
a social network based on OpenSocial. I've already installed and
configured
the necessary tools and Shindig is running ok.
I followed the instructions at
http://chrisschalk.com/shindig_docs/io/shindig-io.html#lab1 but now
i have
some problems. The version of Shindig that i could find is 1.0 and the
tutorial is for version 0.7. To be more specific the problem is that
some
interfaces like DataService, ActivitiesService no more exists.
I wanna know if u can give some information so i can solve this
problem.
How can i get the Shindig 0.7? Or even better, how can i do the
database
integration in the latest version (Shindig 1.0).
Thank u !!
--
Angelo A. Moura
Membro Brazil-IP/UEFS 2008
Decodificador de Áudio MPEG-2 AAC-LC
Universidade Estadual de Feira de Santana