You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Luciano Resende <lu...@gmail.com> on 2008/09/26 22:15:03 UTC
Location of JavaScript client proxies for Web 2.0 bindings
I was doing a quick review on what is available today for as
JavaScript client proxies for the Atom [1], JSON-RPC [2][3][4] and
HTTP bindings [5], and where they are available today.
If we look in the JSON-RPC client proxy, we have it in multiple places
[2][3][4] and with multiple names (binding-atom.js and jsonrpc.js),
this certainly cause confusion and with time make the contents
different. Also, the other client proxies are available in a different
place then the bind itself.
Where these client proxies should reside (in the binding project) ? I
did a quick try by moving the binding-atom.js to binding-atom-abdera
module and it seems to work fine.
[1] https://svn.apache.org/repos/asf/tuscany/java/sca/modules/implementation-widget-runtime/src/main/resources/binding-atom.js
[2] https://svn.apache.org/repos/asf/tuscany/java/sca/modules/implementation-widget-runtime/src/main/resources/binding-jsonrpc.js
[3] https://svn.apache.org/repos/asf/tuscany/java/sca/modules/implementation-web-runtime/src/main/resources/jsonrpc.js
[4] https://svn.apache.org/repos/asf/tuscany/java/sca/modules/binding-jsonrpc-runtime/src/main/resources/org/apache/tuscany/sca/binding/jsonrpc/provider/jsonrpc.js
[5] https://svn.apache.org/repos/asf/tuscany/java/sca/modules/implementation-widget-runtime/src/main/resources/binding-http.js
--
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/
Re: Location of JavaScript client proxies for Web 2.0 bindings
Posted by Jean-Sebastien Delfino <js...@apache.org>.
Dan Becker wrote:
> I think as long as they are not generated per component, then it makes
> sense to put the proxy along with its binding code (e.g. atom.js with
> binding-atom or binding-atom-abera, etc.)
>
> +1
>
+1
It will also be useful to do the following:
- use an extension point to contribute the pieces of Javascript, the
current code with getResource won't work in an OSGi environment.
- make all proxies expose the same constructor to avoid the 'if
binding.jsonrpc' test in the implementation.widget invoker.
--
Jean-Sebastien
Re: Location of JavaScript client proxies for Web 2.0 bindings
Posted by Dan Becker <da...@gmail.com>.
I think as long as they are not generated per component, then it makes
sense to put the proxy along with its binding code (e.g. atom.js with
binding-atom or binding-atom-abera, etc.)
+1
Luciano Resende wrote:
> I was doing a quick review on what is available today for as
> JavaScript client proxies for the Atom [1], JSON-RPC [2][3][4] and
> HTTP bindings [5], and where they are available today.
>
> If we look in the JSON-RPC client proxy, we have it in multiple places
> [2][3][4] and with multiple names (binding-atom.js and jsonrpc.js),
> this certainly cause confusion and with time make the contents
> different. Also, the other client proxies are available in a different
> place then the bind itself.
>
> Where these client proxies should reside (in the binding project) ? I
> did a quick try by moving the binding-atom.js to binding-atom-abdera
> module and it seems to work fine.
>
>
> [1] https://svn.apache.org/repos/asf/tuscany/java/sca/modules/implementation-widget-runtime/src/main/resources/binding-atom.js
> [2] https://svn.apache.org/repos/asf/tuscany/java/sca/modules/implementation-widget-runtime/src/main/resources/binding-jsonrpc.js
> [3] https://svn.apache.org/repos/asf/tuscany/java/sca/modules/implementation-web-runtime/src/main/resources/jsonrpc.js
> [4] https://svn.apache.org/repos/asf/tuscany/java/sca/modules/binding-jsonrpc-runtime/src/main/resources/org/apache/tuscany/sca/binding/jsonrpc/provider/jsonrpc.js
> [5] https://svn.apache.org/repos/asf/tuscany/java/sca/modules/implementation-widget-runtime/src/main/resources/binding-http.js
>
--
Thanks, Dan Becker