Thanks Stanton!

I¹m assuming that you mean the javascript calls will call listmethods then
make any necessary RPC calls, is that correct?  Is there any other
documentation on the introspection part?

The reason I ask is that we¹re having problems server side when Shindig is
pipelining data.  For example, when you do the following in a gadget:
<os:ViewerRequest key="viewer" />
    <os:DataRequest key="appData" method="appdata.get" userId="@viewer"
appId="@app"/>


Shindig appears to make HTTP requests to the rpc endpoint to itself in the
process of rendering the gadget.  I could be missing something fundamental
here, but is there any way to configure this differently so that shindig
simply uses its SPI methods to retrieve this data instead?  Is this really
just more of a convenience for the gadget developer than anything else?

-Matt

On 8/20/14, 4:14 PM, "Stanton Sievers" <ssiev...@apache.org> wrote:

>Hi Matt,
>
>This behavior is configured in container.js in the "gadgets.features"
>object.  If you look for "osapi" and "osapi.services", you'll see some
>comments about this configuration and the behavior.
>features/container/service.js is where this configuration is used and
>where
>the osapi services are instantiated.  As you've seen, Shindig introspects
>to find available services by default.
>
>If I knew at one point why this behaves this way, I've since forgotten.
>There is a system.listMethods API[1] defined in the Core API Server spec
>that this might simply be re-using to discover the available services.
>
>I hope that helps.
>
>-Stanton
>
>[1]
>http://opensocial.github.io/spec/trunk/Core-API-Server.xml#System-Service-
>ListMethods
>
>
>On Tue, Aug 19, 2014 at 8:13 AM, Merrill, Matt <mmerr...@mitre.org> wrote:
>
>> Good morning,
>>
>> I¹m hoping some shindig veterans can help shed some light into the
>>reason
>> that Shindig makes HTTP rpc calls to itself as part of the gadget
>>rendering
>> process.  Why is this done as opposed to retrieving information via
>> internal Java method calls?  We hare having lots of issues where this
>> approach seems to be causing a cascading failure when calls get hung up
>>in
>> the HTTPFetcher class.
>>
>> Also, I¹m curious what calls are made in this manner and how can they be
>> configured?  I have seen retrieval of viewer data done this way, as
>>well as
>> application data.
>>
>> I¹ve looked for documentation on this topic before and have not seen
>>any.
>>  Any help is much appreciated.
>>
>> Thanks!
>> -Matt Merrill
>>

Reply via email to