There is a documentation effort underway for the JPA samples project
that should help this.
JPA the default for testing the Shindig Social SPI would unfortunately
increase build time and make it harder to precisely define test data,
so will probably be counterproductive.
Ian
On 21 Jul 2009, at 17:56, Wang, Jeff (CTSI) wrote:
On that subject, would it be better to have the JPA example as the
default example, and provide a script to set up the tables on
JavaDB? It comes with the JDK nowadays. You guys would certainly
get a lot less questions of "how do I connect this to a real DB?"
:)
Jeff
-----Original Message-----
From: Chris Chabot [mailto:[email protected]]
Sent: Monday, July 20, 2009 3:07 AM
To: [email protected]
Subject: Re: newbie questions
Hey Thomas,
You are indeed correct, the default out-of-the-box sample code uses
a json
back-end, but do note that this isn't intended for real use..
there's no
write locks, no scalability, it's only purpose is to have something
to play
with when you've first installed shindig.
The best way to exercise and validate the implementation is by
running the
OpenSocial complaince test gadget, located at
http://code.google.com/p/opensocial-resources/wiki/ComplianceTests
(use the
0.8 JavaScript one), however do note that the json backend isn't
complete
and will have plenty of errors in it, and that part of the services
offered
by shindig require a container (a social web site that 'contains' open
social gadgets) for the user preferences, proper security tokens etc.
Luckily there's also a much more complete real example of how to use
php-shindig with a MySql back-end: http://code.google.com/p/partuza/
(and a
live version at http://www.partuza.nl), which does a good job at
demonstrating how to implement all the container bits.
On Sat, Jul 18, 2009 at 5:48 PM, Thomas Kwan <[email protected]>
wrote:
I just installed shindig-1.0-incubating-php, and I can access http://
<your.host>/gadgets/ifr?url=
http://www.labpixies.com/campaigns/todo/todo.xmlwithout
problem.
The default config points to
./src/social/sample/JsonDbOpensocialService.php
and I assume it will create a json file
with the requested data if we can an opensocial application that will
execise person_service and app_data_service.
Anyone can point me to such app?
thanks