Tim Henness wrote:
If I understand your question, you're wanting to write a traditional CGI
program in java and have it run under the HTTP Server. This is in contrast
to using WebSphere Application Server, which runs as a web server plug-in.
Yes.
I don't think you can call a Java program directly as a CGI, since the CGI
call specification is not what Java requires. It should be theoretically
possible to write a 'stub' CGI program in another language that will
call the Java program and translate between the two. But even if you did
you would *really not* be happy with the performance!
CGI performance tends to be pretty poor at best. Writing a CGI program is
Java would be unthinkably poor, since the system would have to create a JVM
(Java Virtual machine) for each CGI call. Creating a JVM is a very high
overhead activity. You're probably looking at several seconds of CPU time
for *every* CGI call.
I'm not concerned about performance here. I'm concerned
with functionality: can it be done at all. The doc seems
to indicate both yes and no. So I'm trying to see if anyone
on the list has actually done it or has proven it can't be
done.
The reasonable choices are:
1. Write it in another language.
a. If it's low-usage you can use REXX or shell script.
b. For moderate usage you might need to use C.
c. If it's high-usage you might need to write it as a GWAPI
plug-in, rather than CGI.
Yes. I plan to create CGIs in:
Java (if it's possible)
REXX (done)
shell script
COBOL
C (done)
Assembler (done)
PL/I
Perl (done)
awk (is this do-able or appropriate?)
I want to learn about php and ruby as well as other
scripting languages that have been ported to z/OS
UNIX. I intend to work with CGI, FastCGI, and
GWAPI as possible.
2. Get WebSphere Application Server.
I've got it. But I like to learn how to craft things
by hand first, so I understand how things really work,
before using tools that hide a lot of this from you.
Good luck!
Tim
Thanks.
Kind regards,
-Steve Comstock
The Trainer's Friend, Inc.
On Mon, 12 Jun 2006 11:36:09 -0600, Steve Comstock
<[EMAIL PROTECTED]> wrote:
Hi,
I'm trying to create a Java CGI to run using the z/OS
HTTP server, but not having a lot of luck. (z/OS 1.6,
java version 1.4.2 installed) (Note: I'm trying to do
this without using WebSphere, just the basic HTTP
server.)
<snip>
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html