Hi @all, I'm very familiar with REXX but new to NetRexx and more or less very rookie to Java and Javascipt. Because I have to code in Java and Javascript now, i would like to do this using NetRexx. How can I call NetRexx programs out of Java and Javascripts (because the framework where my code must run are Apache Tomcat servlet)? Can anyone supply me some code samples? Thanks in advance, Kind regards, Christian Schaper, [hidden email] _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Take a look at Apache Pivot. It might be what you need. Good framework since you are using Tomcat.
You can mix all three. On Sun, Apr 29, 2012 at 4:41 AM, <[hidden email]> wrote:
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Jason,
NetRexx classes are Java classes (and vice-versa). Call them as you would a Java class. One way of looking at NetRexx is that it is Java with improved syntax (but it's more than that). George On Sun, Apr 29, 2012 at 9:55 AM, Jason Martin <[hidden email]> wrote: Take a look at Apache Pivot. It might be what you need. Good framework since you are using Tomcat. _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
True, but it can depend on how creative a coder you are.
From the docs .. "In addition to being used as a compiler, the translator also includes a true NetRexx interpreter, allowing NetRexx programs to be run on the Java 2 (1.2) platform without needing a compiler or generating .class files." On Sun, Apr 29, 2012 at 3:56 PM, George Hovey <[hidden email]> wrote:
_______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
That also reminds me that line one of the sample in the user guide should read :
import org.netrexx.process.NetRexxC "Interpreting a program from a memory string A simple way to interpret a NetRexx program string from memory is shown in this example which interprets a program string but does not compile it: import org.netrexx.process.NetRexx program = "say 'hello there via NetRexxC'" NetRexxC.main("myprogram -exec -nojava",program)" On Sun, Apr 29, 2012 at 4:12 PM, Jason Martin <[hidden email]> wrote: True, but it can depend on how creative a coder you are. _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
To give an example : (Somebody might use it this way.)
Read Running CGI scripts in Apache Tomcat
http://www.wellho.net/solutions/java-running-cgi-scripts-in-apache-tomcat.html Change the Perl Shebang #!/usr/bin/perl to some NetRexx one that does something like nrc -exec -nojava Change the code to NetRexx using SAY some html page Tweak a few settings, paths, and etc....... You now have something like : CGI NetRexx On Sun, Apr 29, 2012 at 4:31 PM, Jason Martin <[hidden email]> wrote: That also reminds me that line one of the sample in the user guide should read : _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by schaper
On Sun, Apr 29, 2012 at 05:41, <[hidden email]> wrote:
Also of help "Creating Java Applications with NetRexx". It covers CGI and Javabeans. http://www.redbooks.ibm.com/abstracts/sg242216.html PDF Download http://www.redbooks.ibm.com/redbooks/pdfs/sg242216.pdf FC -- During times of Universal Deceit, telling the truth becomes a revolutionary act Durante épocas de Engaño Universal, decir la verdad se convierte en un Acto Revolucionario - George Orwell _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
In reply to this post by schaper
Given that you specifically asked for servlets, Mark Damon's pages should be what you're looking for.
http://kuoi.com/~kamikaze/NetRexx/nrxservlet.php As you'll see, it's not really different from doing the servlet thing in java. Mark's 'forward' method makes for a nice goody though. - Saludos / Kind regards, David Requena NOTE: The opinions expressed here represent the opinions of the authors and do not necessarily represent the opinions of those who hold other opinions. -----Original Message----- From: [hidden email] Sender: [hidden email] Date: Sun, 29 Apr 2012 10:41:56 To: <[hidden email]> Reply-To: IBM Netrexx <[hidden email]> Subject: [Ibm-netrexx] How can I call NetRexx-programs from Java and/or Javascipt? Hi @all, I'm very familiar with REXX but new to NetRexx and more or less very rookie to Java and Javascipt. Because I have to code in Java and Javascript now, i would like to do this using NetRexx. How can I call NetRexx programs out of Java and Javascripts (because the framework where my code must run are Apache Tomcat servlet)? Can anyone supply me some code samples? Thanks in advance, Kind regards, Christian Schaper, [hidden email] _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ _______________________________________________ Ibm-netrexx mailing list [hidden email] Online Archive : http://ibm-netrexx.215625.n3.nabble.com/ |
Free forum by Nabble | Edit this page |