Re: jigsaw resources under fastcgi

Steve Harris (
Wed, 11 Dec 1996 10:55:01 -0500

Message-Id: <>
To: "S. Alexander Jacobson" <>
Subject: Re: jigsaw resources under fastcgi 
In-Reply-To: Your message of "Wed, 11 Dec 1996 10:17:44 EST."
Date: Wed, 11 Dec 1996 10:55:01 -0500
From: Steve Harris <>

> On Wed, 11 Dec 1996, Brian Millett wrote:
> > S. Alexander Jacobson writes:
> >  |Has anyone gotten jigsaw resources to run on top of fast-cgi?  
> >  |On top of the netscape server, apache, iis, website?
> > Just the cgi-fcgi gateway as a CgiResource.  However Jigsaw seems to
> > "hang" after the FIRST invocation of the fcgi.  Anselm is looking into
> > the reason.
> I think we are talking about different things.  I would like to develop
> for a single java-in-process runtime httpd environment that runs with all
> the major web servers.  I am interested in fastcgi because it seems to
> provide the in-process capability to apache, ncsa, and openmarket servers.
> Right now, the only way to write server-side java applications that run on
> all webservers is to use a cgi-wrapper that loads java on every
> invocation (VERY SLOW).  An in-process java environment would reduce
> invocation time substantially and provides even greater advantages when
> used with jdbc or other connection oriented protocols.

Actually, you can run a Java application as a fastcgi External Application, 
which means you load Java only once. See the fastcgi Java documentation for 
more info. Unfortunately, as far as I know, this only works directly with an 
Open Market Web server. The documentation also mentions that you could get the 
same effect on other servers using cgi-fcgi, but because of the way that Java 
implements ServerSocket, you might have to make some minor changes to the 
cgi-fcgi code.

> > However, with Jigsaw I feel that it would be smart to use the cgi-fcgi
> > gateway until you can write a new Jigsaw Resource that would allow the
> > "fastCGI" like attributes with session affinity.
> I am not too worried about session afinity.  I have a good sense of how to
> do that with jigsaw filters and jdbc.  I am much interested in a
> consistent viable server side java development environment accross all the
> major web servers.
> -Alex-
> _____________________________________________________________________________
> S. Alexander Jacobson       Virtual Office, Inc.     Internet Data & Commerce
> 1-212-799-2645 voice	   1-212-799-1075 fax