To my understanding, PHP impl supports "one shindig, multiple SNS" schema as
well:

1. Under directory //config, creates myContainer.js and specify the SPI
paths;
2. In //php/config/local.php, developers could specify the concrete services
which implemented people/activity APIs.
3. In the concrete service, the requests can be distinguished with each
other by the "containerId" part encapsulated in the security token.
Developer may like to re-distribute the request to the specific SNS handler.
4. For the security token part, developer may like to apply different
algorithm/key according to the "containerId" parameter.

It's just my roughly understanding.  Please feel free to correct me.

- Jacky

On Tue, Mar 30, 2010 at 5:05 AM, Kevin Brown <[email protected]> wrote:

> I dunno about the PHP impl, but the Java impl is explicitly designed for
> such uses -- this is where the idea of "container configuration files"
> comes
> from.
>
> On Mon, Mar 29, 2010 at 12:47 PM, Harris Wong <[email protected]
> >wrote:
>
> > Hi all,
> >
> > According to
> >
> http://www.mail-archive.com/[email protected]/msg11731.html
> ,
> > I can host multiple social sites on 1 shindig.  Within
> > shindig/php/config/local.php, I can specify the SPI paths and the
> > extension_class_paths.  However, those are hardcoded on the shindig
> server.
> >  How do I dynamically load the local.php based on the requested server?
> > ie.
> > http://al...@server_1 -> shindig -> loads Server_1's local.php ->
> returns
> > Server_1 data (alice's friends)
> > http://j...@server_2 -> shindig -> loads Server_2's local.php ->returns
> > Server_2 data (joe's friends)
> >
> > My situation now is,
> > http://al...@server_1 -> shindig -> local.php -> returns Server_1 data
> > (alice's friends)
> > http://j...@server_2 -> shindig -> local.php -> returns Server_1 data
> > (alice's friends)
> >
> > Thanks!
> >
> >
> > Regards,
> > Harris Wong
> >
> > --
> > Harris Wong
> > Accessible Software Developer
> > Adaptive Technology Resource Centre, University of Toronto
> > 130 St. George Street
> > Toronto, ON, M5S 1A5
> >
> >
>



-- 
Best Regards,

Jacky Wang
(Office) +86-10-6250-3316
(Mobile) +86-1381-0018-677
Kejian Building, Tsinghua Science Park Building 6
No.1 Zhongguancun East Road, Haidian District
Beijing P.R.China 100084

Reply via email to