I´ve read this
http://java.sun.com/developer/technicalArticles/J2SE/Desktop/scripting/ which says "The Java platform provides rich resources for both desktop and web application development. However, using those resources from outside the platform has been impractical unless you resort to proprietary software solutions. No industry standard has defined or clarified how developers can use Java class files from other programming languages. Scripting languages haven't had a standard, industry-supported way to integrate with Java technologies. However, as Bob Dylan once said, "the times, they are a changin'." One change is Java Specification Request (JSR) 223, which helps developers integrate Java technology and scripting languages by defining a standard framework and application programming interface (API) to do the following:
This article focuses on the specification's third goal and will show you how to use an embedded scripting environment from a Java platform application. A demo application called ScriptCalc will provide a working example of how to extend your applications with user-defined scripts in the JavaScript programming language. Note: Any API additions or other enhancements to the Java SE
platform specification are subject to review and approval by the JSR 270
Expert Group." So how is this different from, say, NetRexx, and how difficult it would be to turn Rexx / NetRexx into a JSR223-compliant "scripting engine" for use within Java?. Is this a "two-way" bridge, so that, for instance, one could call Java classes from inside a Regina Rexx program, or call a Regina Rexx script from within a Java app?. I´m specially interested in MFC´s views on this... Thanks.... FC _______________________________________________ Ibm-netrexx mailing list [hidden email] |
So how is this different from, say, NetRexx, and how
difficult it would be to turn Rexx / NetRexx into a JSR223-compliant "scripting
engine" for use within Java?.
Is this a "two-way" bridge, so that, for instance, one could call Java classes from inside a Regina Rexx program, or call a Regina Rexx script from within a Java app?. I´m specially interested in MFC´s views on this... I haven't looked at it at all, so have no opinion .. sorry. Mike
_______________________________________________ Ibm-netrexx mailing list [hidden email] |
In reply to this post by Fernando Cassia-2
On 19.01.2011 06:14, fernando cassia wrote: I´ve read this It has been possible for many years already to employ NetRexx, Regina, Object REXX and ooRexx for scripting in the context of Java applications. And in a "two-way" bridge. NetRexx has been made available in the IBM opensource Java framework "Bean Scripting Framework (BSF)" almost ten years ago! BSF was then handed over to the Apache Software Foundation (ASF), where it happily lives at <http://jakarta.apache.org/bsf/index.html>. Support for Regina, Object REXX, ooRexx and any other Rexx-SAA-compliant Rexx interpreter was added with "BSF4Rexx", cf. <http://wi.wu.ac.at/rgf/rexx/bsf4rexx/current/>. Finally, with the new kernel of ooRexx 4.0 specific support for ooRexx has been implemented, yielding "BSF4ooRexx" (note "ooRexx" now!), cf. <http://wi.wu.ac.at/rgf/rexx/bsf4oorexx/current/>. This version allows in addition to implement abstract Java methods (from Java interface classes, Java abstract classes) in Rexx code and even raise Java exceptions from Rexx, if necessary (cf. <http://wi.wu.ac.at/rgf/rexx/orx20/2009_orx20_BSF4ooRexx-20091031-article.pdf>). At last year's International Rexx Symposium the presentation entitled "Use Rexx and ooRexx from its Java-based Sibling NetRexx" (cf. schedule at <http://www.rexxla.org/events/2010/schedule.html> and its links to the abstracts), explained and demonstrated BSF, giving showcases on how NetRexx/Java applications can invoke Rexx programs, supply arguments, fetch return values and in the case of ooRexx send messages to ooRexx objects from NetRexx! --- Turning to JSR-223: the minimum specifications are rather easy to meet, especially if you take into account that a NetRexx engine exists for BSF alreeady for a decade in source form although nobody seems to realize/know that! (JSR-223 drew a lot of concepts from BSF.) So it would be rather feasible to create a JSR-223 engine. There is an ASF-implementation of JSR-223 which makes this framework available to installations of Java 1.4 and 1.5 (JSR-223 was made available only for Java 1.6/6 and up by Sun, although originally the specifications were developed to be implementable on earlier versions of Java), named "BSF 3.0" to distinguish it from its precursor "BSF 2.4". So if in doubt what or how to implement a JSR-223 engine for NetRexx you could look into the BSF 3.0 (with the JSR-223 functionality) source code HTH, ---rony _______________________________________________ Ibm-netrexx mailing list [hidden email] |
In reply to this post by Mike Cowlishaw
who is working on a JSR223-compliant NetRexx solutions, as far as I can remember (hope may small brain serves me right ;-)) Thomas. Am 19.01.2011 08:26, schrieb Mike Cowlishaw:
--
Thomas Schneider (www.thsitc.com) _______________________________________________ Ibm-netrexx mailing list [hidden email]
Tom. (ths@db-123.com)
|
In reply to this post by Rony G. Flatscher (wu-wien)
On Wed, Jan 19, 2011 at 4:31 AM, Rony G. Flatscher
<[hidden email]> wrote: > > Turning to JSR-223: the minimum specifications are rather easy to meet, > especially if you take into account that a NetRexx engine exists for BSF > alreeady for a decade in source form although nobody seems to realize/know > that! (JSR-223 drew a lot of concepts from BSF.) So it would be rather > feasible to create a JSR-223 engine. Wow... thanks a bunch, Rony, for such in-depth response. I knew the idea of rexx scripting to/from java just made sense. BSF sounds great, and I hope, for standarisation´s sake, that someone eventually turns that into a full JSR-223 engine, if only just to see Rexx added to the list of scripting languages supported, at scripting.dev.java.net ... :o) FC _______________________________________________ Ibm-netrexx mailing list [hidden email] |
In reply to this post by Thomas.Schneider.Wien
On Wed, Jan 19, 2011 at 5:12 AM, Thomas Schneider <[hidden email]> wrote:
> I would recommend you contact Kermit Kiser, www.lermitkiser.com, Thanks!. This should be added to a NetRexx FAQ. Is there a NetRexx FAQ? It´s been 12 years since I maintained a FAQ, and it was hell at the time (using Netscape Composer as HTML editor, before wikis... :)... but in this case I´m willing to make an exception. ;) Here´s the docs URL: http://www.kermitkiser.com/NetRexx/Script/NetRexx-JSR-223-Script-Engine.html And the files: JSR 223 NetRexx Script Engine for Java - Development version! http://www.kermitkiser.com/NetRexx/Script/index.html FC _______________________________________________ Ibm-netrexx mailing list [hidden email] |
In reply to this post by Fernando Cassia-2
I am in the Philippines for a while with limited computer access and may not respond quickly. I have suspended development work on NetRexx JSR223 until someone provides a valid use case other than "it would be neat". I could not find any valid environment in which to use this facility. And the JSR spec is so poorly defined that a real environment is needed to actually finish coding this to. For now my sample remains a feasibility demo. If anyone wants the source code, just let me know and I will post it somewhere.
-- Kermit Kiser
_______________________________________________ Ibm-netrexx mailing list [hidden email] |
Have a nice Holiday, Kermit, and happy new Year 2010 :-)
Please give me a private mail when you are back in the IS. Cheers, old Internt-Friend :-) Thomas. ================================================== Am 20.01.2011 09:25, schrieb Kermit Kiser:
--
Thomas Schneider (www.thsitc.com) _______________________________________________ Ibm-netrexx mailing list [hidden email]
Tom. (ths@db-123.com)
|
In reply to this post by Kermit Kiser
On Thu, Jan 20, 2011 at 5:25 AM, Kermit Kiser <[hidden email]> wrote:
> I have suspended development work on NetRexx JSR223 until someone provides a > valid use case other than "it would be neat". I could not find any valid > environment in which to use this facility. A lot of code starts this way. Just to prove something is possible, and once in the wild, people find creative uses for it. I´m sure when MFC created Rexx he didn´t envision using it to power terminal scripting like the ZOC terminal emulator does. > And the JSR spec is so poorly > defined that a real environment is needed to actually finish coding this to. So hoy did others do it?.Quoting from http://java.sun.com/developer/technicalArticles/scripting/jruby/ "you can use the JSR 223 Scripting APIs or the Bean Scripting Framework (BSF) APIs to call a JRuby script from within a Java application to, for example, invoke back-end processing scripts from a servlet to update or generate web content." > For now my sample remains a feasibility demo. If anyone wants the source > code, just let me know and I will post it somewhere. Yes, that´d be great. If all fails let me know and I´ll upload it to SourceForge, as I have a couple active projects there. Thanks, FC _______________________________________________ Ibm-netrexx mailing list [hidden email] |
In reply to this post by Fernando Cassia-2
Hi Fernando -
I did not mean that it was not easy to code the JSR223 engine for NetRexx - I mean that it is difficult to make it useful or efficient. The demo version that I wrote works although it is not efficent. Here are some of the problems I encountered:
(1) NetRexx currently must execute a script from a "disk" file but the JSR223 spcification passes scripts in memory and it does not provide information about what file access is available, so assumptions need to be made.
(2) JSR223 provides an interface for passing information between environment and scripts but does not define what is passed or by which partner. Again, assumptions must be made.
An actual environment to use the engine in would help define an initial direction for clarifying the fuzzy areas. Knowing what others have done for JSR223 may not help much at this point because they may not be much further along.
I will try to post my current source code next month when I return to my computer although it is of limited use.
-- Kermit Kiser
_______________________________________________ Ibm-netrexx mailing list [hidden email] |
On Sun, Jan 23, 2011 at 12:07 AM, Kermit Kiser <[hidden email]> wrote:
> I will try to post my current source code next month when I return to my > computer although it is of limited use. > > -- Kermit Kiser Thanks Kermit! enjoy your stay away from home :) FC _______________________________________________ Ibm-netrexx mailing list [hidden email] |
I have zipped up the development directories for the demo version of the
NetRexx JSR223 script engine. All source files are included. The zip is uploaded to here: http://kermitkiser.com/NetRexx/Script/jsr223.zip -- Kermit On 1/22/2011 7:27 PM, Fernando Cassia wrote: > On Sun, Jan 23, 2011 at 12:07 AM, Kermit Kiser<[hidden email]> wrote: > >> I will try to post my current source code next month when I return to my >> computer although it is of limited use. >> >> -- Kermit Kiser > Thanks Kermit! > enjoy your stay away from home :) > > FC > _______________________________________________ > Ibm-netrexx mailing list [hidden email] |
Is there a description of what JSR223 does?
thnx bobh On Fri, Feb 4, 2011 at 9:58 PM, Kermit Kiser <[hidden email]> wrote: I have zipped up the development directories for the demo version of the NetRexx JSR223 script engine. All source files are included. The zip is uploaded to here: _______________________________________________ Ibm-netrexx mailing list [hidden email] |
Bob, Google is your friend, really...
http://jcp.org/en/jsr/detail?id=223 On Friday, 4 February 2011, Robert Hamilton <[hidden email]> wrote: > Is there a description of what JSR223 does? -- Can't tweet, won't tweet! _______________________________________________ Ibm-netrexx mailing list [hidden email]
Alan
-- Needs more cowbell. |
In reply to this post by Robert L Hamilton
On Sat, Feb 5, 2011 at 1:16 AM, Robert Hamilton <[hidden email]> wrote:
> Is there a description of what JSR223 does? http://java.sun.com/developer/technicalArticles/J2SE/Desktop/scripting/ FC _______________________________________________ Ibm-netrexx mailing list [hidden email] |
In reply to this post by alansam
On Sat, Feb 5, 2011 at 4:02 PM, Alan Sampson <[hidden email]> wrote:
> Bob, Google is your friend, really... I came across this "LMGTFY.com" web site recently, which made my day... http://www.lmgtfy.com/?q=jsr223+Java FC _______________________________________________ Ibm-netrexx mailing list [hidden email] |
In reply to this post by Fernando Cassia-2
You may have given Bob the wrong impression. JSR223 is a specification
(a very poor one in my opinion) to allow scripting languages to be used in Java based environments. In spite of the hype and rush to make all script languages "compliant", you won't find any environments that actually use it other than some obscure stuff like Tomcat servers. No actual user environments, not even Open Office or jEdit, actually support it. Nor do developer environments like Eclipse support it, although NetBeans may be moving in that direction. I suspended my development over a year ago because I could not find anyplace to test or use it and the spec is so poor it is difficult to implement efficiently. I don't see where anything has changed yet. Maybe after NetRexx goes open source we can look at it again. -- Kermit On 2/5/2011 11:43 AM, Fernando Cassia wrote: > On Sat, Feb 5, 2011 at 1:16 AM, Robert Hamilton<[hidden email]> wrote: >> Is there a description of what JSR223 does? > http://java.sun.com/developer/technicalArticles/J2SE/Desktop/scripting/ > > FC > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > > > Ibm-netrexx mailing list [hidden email] |
So WHAT, Kermit??
Should we go ahead and TRY to IMPLEMENT our OWN SPECIFICATION(s) ????????? Thomas. ========================================================== Am 07.02.2011 22:01, schrieb Kermit Kiser: > You may have given Bob the wrong impression. JSR223 is a specification > (a very poor one in my opinion) to allow scripting languages to be > used in Java based environments. In spite of the hype and rush to make > all script languages "compliant", you won't find any environments that > actually use it other than some obscure stuff like Tomcat servers. No > actual user environments, not even Open Office or jEdit, actually > support it. Nor do developer environments like Eclipse support it, > although NetBeans may be moving in that direction. > > I suspended my development over a year ago because I could not find > anyplace to test or use it and the spec is so poor it is difficult to > implement efficiently. I don't see where anything has changed yet. > Maybe after NetRexx goes open source we can look at it again. > > -- Kermit > > > On 2/5/2011 11:43 AM, Fernando Cassia wrote: >> On Sat, Feb 5, 2011 at 1:16 AM, Robert Hamilton<[hidden email]> >> wrote: >>> Is there a description of what JSR223 does? >> http://java.sun.com/developer/technicalArticles/J2SE/Desktop/scripting/ >> >> FC >> _______________________________________________ >> Ibm-netrexx mailing list >> [hidden email] >> >> >> > _______________________________________________ > Ibm-netrexx mailing list > [hidden email] > > -- Thomas Schneider (www.thsitc.com) _______________________________________________ Ibm-netrexx mailing list [hidden email]
Tom. (ths@db-123.com)
|
To what end Thomas? If there is no place to use the JSR223
specification, where would you use something else? What do you wish to accomplish? On 2/7/2011 1:54 PM, Thomas Schneider wrote: > So WHAT, Kermit?? > > Should we go ahead and TRY to IMPLEMENT our OWN SPECIFICATION(s) > ????????? > Thomas. > ========================================================== > Am 07.02.2011 22:01, schrieb Kermit Kiser: >> You may have given Bob the wrong impression. JSR223 is a >> specification (a very poor one in my opinion) to allow scripting >> languages to be used in Java based environments. In spite of the hype >> and rush to make all script languages "compliant", you won't find any >> environments that actually use it other than some obscure stuff like >> Tomcat servers. No actual user environments, not even Open Office or >> jEdit, actually support it. Nor do developer environments like >> Eclipse support it, although NetBeans may be moving in that direction. >> >> I suspended my development over a year ago because I could not find >> anyplace to test or use it and the spec is so poor it is difficult to >> implement efficiently. I don't see where anything has changed yet. >> Maybe after NetRexx goes open source we can look at it again. >> >> -- Kermit >> >> >> On 2/5/2011 11:43 AM, Fernando Cassia wrote: >>> On Sat, Feb 5, 2011 at 1:16 AM, Robert >>> Hamilton<[hidden email]> wrote: >>>> Is there a description of what JSR223 does? >>> http://java.sun.com/developer/technicalArticles/J2SE/Desktop/scripting/ >>> >>> FC >>> _______________________________________________ >>> Ibm-netrexx mailing list >>> [hidden email] >>> >>> >>> >> _______________________________________________ >> Ibm-netrexx mailing list >> [hidden email] >> >> > > Ibm-netrexx mailing list [hidden email] |
On Tue, Feb 8, 2011 at 4:39 AM, Kermit Kiser <[hidden email]> wrote:
> To what end Thomas? If there is no place to use the JSR223 specification, Okay, we hear you loud and clear Kermit... in your view JSR223 is crap, so nobody should use it... or even think about using it... FC _______________________________________________ Ibm-netrexx mailing list [hidden email] |
Free forum by Nabble | Edit this page |