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.
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.
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.
2. Get WebSphere Application Server.
Good luck!
Tim
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