On 5/24/06, ant elder <[EMAIL PROTECTED]> wrote:
Its for this: http://issues.apache.org/jira/browse/TUSCANY-417. Which would be based on the Rhino shell: http://www.mozilla.org/rhino/shell.html, which to quote from that site provides "... an interactive environment for exploratory programming.".Ideally the shell environment would be configured automatically from the SCA config so you can do something like the following without having to do explicit locateService calls: js> print(Helloworld.getGreetings("ant")); hellp ant js>
Would it be possible to promote this further and have a first-class client environment for JavaScript? In this environment there would be pure JavaScript objects representing references to other services; for example, in your example above "Helloworld" would be a JavaScript object implementing the service interface. In this mode, there would be no need for the application code to access the list of components, they would just be there ready to be used. Each object would be the JavaScript equivalent of the proxies that are injected into a Java component to represent its references. I would imagine this would be the same as the model used inside a browser, just using its native JS implementation rather than Rhino. Actually, this could be start of a JavaScript Client/Implementation spec - would you be interested in proposing it to the spec collaboration? -- Jeremy --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
