You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "ant elder (JIRA)" <tu...@ws.apache.org> on 2006/05/23 11:14:29 UTC

[jira] Created: (TUSCANY-417) Interactive JavaScript SCA client

Interactive JavaScript SCA client
---------------------------------

         Key: TUSCANY-417
         URL: http://issues.apache.org/jira/browse/TUSCANY-417
     Project: Tuscany
        Type: New Feature

  Components: Java SCA JavaScript Container  
    Versions: Java-M2    
    Reporter: ant elder
     Fix For: Java-M2


Create a new JavaScript SCA client shell similar to the Rhino shell 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-417) Interactive JavaScript SCA client

Posted by "ant elder (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-417?page=all ]

ant elder updated TUSCANY-417:
------------------------------

        Fix Version/s: Java-Mx
                           (was: Java-M2)
    Affects Version/s: Java-Mx
                           (was: Java-M2)

> Interactive JavaScript SCA client
> ---------------------------------
>
>                 Key: TUSCANY-417
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-417
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA JavaScript Container
>    Affects Versions: Java-Mx
>            Reporter: ant elder
>         Assigned To: ant elder
>             Fix For: Java-Mx
>
>         Attachments: TuscanyShell.zip
>
>
> Create a new JavaScript SCA client shell similar to the Rhino shell 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-417) Interactive JavaScript SCA client

Posted by "ant elder (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-417?page=comments#action_12413444 ] 

ant elder commented on TUSCANY-417:
-----------------------------------

Thanks for the patch Jojo, I've commit it, with the changes we discussed on IM, into the contianer.rhino project in pkg: org/apache/tuscany/container/rhino/shell/

Great stuff, i'm looking forward to the addition of more functionality you talk about. Here's some things i can think of right now that would be useful, i'm sure theres others:

- being able to pass in the loadModule to use as a parameter on startup, eg, java -cp... org.apache.tuscany.container.rhino.shell.TuscanyShell sample-helloworld-incubating-M1.jar
- having it work with war files (including the lib and classes dir within) like sample-helloworldws-incubating-M1.war
- automatically registering the components in the module so you don't need to do explicit getComponent calls (see unfinished discussion on the mailing list)
 


> Interactive JavaScript SCA client
> ---------------------------------
>
>          Key: TUSCANY-417
>          URL: http://issues.apache.org/jira/browse/TUSCANY-417
>      Project: Tuscany
>         Type: New Feature

>   Components: Java SCA JavaScript Container
>     Versions: Java-M2
>     Reporter: ant elder
>     Assignee: ant elder
>      Fix For: Java-M2
>  Attachments: TuscanyShell.zip
>
> Create a new JavaScript SCA client shell similar to the Rhino shell 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-417) Interactive JavaScript SCA client

Posted by "Jojo Joseph (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-417?page=all ]

Jojo Joseph updated TUSCANY-417:
--------------------------------

    Attachment: TuscanyShell.zip

I have a very primitive, but running, prototype of the javascript shell. The only script function that works as of now is getComponent(). 

This is how you can get it running:

1. Ensure that <mvn repository>\rhino\js\1.6R2\js-1.6R2.jar is in the classpath.

2. You also need at least one sca.module file in the class path (because this prototype loads  the module file from the classpath).

3. Start the shell by running the class : org.apache.tuscany.tools.scripting.TuscanyShell. The following example shows how to use the script with the calculator sample. 

--------------------------------------------------------
Tuscany SCA Shell 0.1, type help() for a list of supported functions.

js> var calc = getComponent("CalculatorServiceComponent");
js> echo(calc)
calculator.CalculatorServiceImpl@120bf2c

js> calc.add(500, 125)
625
js> var product = calc.multiply(45, 5)
js> echo (product)
225.0

js> 
--------------------------------------------------------

I am looking into bringing in more functionality into the shell.

Thanks.
jojo.

> Interactive JavaScript SCA client
> ---------------------------------
>
>          Key: TUSCANY-417
>          URL: http://issues.apache.org/jira/browse/TUSCANY-417
>      Project: Tuscany
>         Type: New Feature

>   Components: Java SCA JavaScript Container
>     Versions: Java-M2
>     Reporter: ant elder
>      Fix For: Java-M2
>  Attachments: TuscanyShell.zip
>
> Create a new JavaScript SCA client shell similar to the Rhino shell 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Closed: (TUSCANY-417) Interactive JavaScript SCA client

Posted by "ant elder (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ant elder closed TUSCANY-417.
-----------------------------

    Resolution: Later

> Interactive JavaScript SCA client
> ---------------------------------
>
>                 Key: TUSCANY-417
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-417
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SCA JavaScript Container
>    Affects Versions: Java-Mx
>            Reporter: ant elder
>         Assigned To: ant elder
>             Fix For: Java-Mx
>
>         Attachments: TuscanyShell.zip
>
>
> Create a new JavaScript SCA client shell similar to the Rhino shell 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Assigned: (TUSCANY-417) Interactive JavaScript SCA client

Posted by "ant elder (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-417?page=all ]

ant elder reassigned TUSCANY-417:
---------------------------------

    Assign To: ant elder

> Interactive JavaScript SCA client
> ---------------------------------
>
>          Key: TUSCANY-417
>          URL: http://issues.apache.org/jira/browse/TUSCANY-417
>      Project: Tuscany
>         Type: New Feature

>   Components: Java SCA JavaScript Container
>     Versions: Java-M2
>     Reporter: ant elder
>     Assignee: ant elder
>      Fix For: Java-M2
>  Attachments: TuscanyShell.zip
>
> Create a new JavaScript SCA client shell similar to the Rhino shell 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org