----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Mike Engelhart wrote:
>
> Hi -
>
> I have a question regarding JServ's servlet zone capabilities. I am using
> Apache 1.3.9, Tomcat as the servlet engine on RedHat Linux 6.1
>
> I want to be able to have users fill out a form that is running on a remote
> Apache/mod-ssl server and share the same JVM that is running on the local
> JServ machine. I have seen in the Advanced techniques document that you can
> have a many (web servers) to one (JVM) architecture but unfortunately the
> examples don't cover this particular architecture. My main reason for
> wanting to share the JVM is so I can keep session state without resorting to
> my current architecture which involves serializing session data to a
> database before sending the user to the SSL enabled server and then pulling
> the session back out of the database, etc. - as this is very cumbersome to
> code.
>
> Am I barking up the wrong tree? Is this possible?
> If it's not possible to do on a remote machine, is it possilbe using ajp
> and JServ to share a ServletContext between two different ports (i.e.
> SSL/non-SSL) on the same machine? I would consider building SSL into my
> main server if that makes it easier/more secure method of operation.
>
> Many thanks for any pointers to sample config files or any other information
> on setting this architecture up.
>
Hi Mike,
JServ is a TCP server. This means it is listening on a TCP port. And can
restrict the TCP address it's listening to (I mean listen only to
127.0.0.1 (localhost loopback address), or to one of the external
Ethernet cards IP address. (Or all of them in 1.1b4 version).
So you must understand that starting JServ automatically by Apache is an
easy an convenient way to start it, but not the only way to do.
So, let's imagine one Apache starting its own JServ in automatic mode.
Another Apache on the same machine can just use the same JVM, that's
what you're needing ?
If it's running on the same machine, you simply have to give in the 2nd
Apachejserv.conf file
ApJServManual On
And that's working : 1 Host, 2 Apache, 1 JVM ...
More complicated things can be done latter, sharing n JServ between m
Apache. See the load-balancing howto paper for that.
And you can share sessions between SSL / not SSL Apache.
Jean-Luc
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]