|
Does anyone know if IBM plans to support JSR 223 in the WebSphere Application Server? JSR 223 is a new specification from that Java Community Process that lets scripting languages like PHP use Java classes when run in a Servlet container. For example, here's a test script written in PHP that uses IBM Toolbox for Java classes to authenticate a user on the iSeries: <html> <head></head> <body> <?php try { //Set the network name of the iSeries, the user name, and the user password. $clsSystem = new Java("java.lang.String", "mysystem"); $clsUser = new Java("java.lang.String", "myname"); $clsPassword = new Java("java.lang.String", "mypassowrd"); //Create a connection to the iSeries. $iSeries = new Java("com.ibm.as400.access.AS400", $clsSystem, $clsUser, $clsPassword); //Authenticate the user and respond to the outcome. $uservalid = $iSeries->authenticate($clsUser, $clsPassword); if ($uservalid==true) { echo("valid user"); } else { echo("invalid user"); } } catch (Exception $e) { echo("Error."); } ?> </body> </html> The PHP script could also get the user information from a login form and start a session to remember the user name and password for subsequent interactions with the iSeries. No need to code Servlets or JSPs. Just drop this script in a Java Web application like an HTML page and it works. Right now I'm using a basic text editor and the Tomcat Servlet container (since that was the reference implementation for JSR 223). However, I'd like to be able to code my scripts in WebSphere Development Studio, test them in the WebSphere Application Server bundled with the studio, and install them in WebSphere Application Server Express for production. Anyone know IBM's plans for JSR 223 and WebSphere? Thanks, Kelly
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.