--
How do I configure a zone to run under a particular JVM version ?
Thanx
Mohan
IBM
Somers, NY
PH: (914) 766-2259
T/L: 826 2259
"Craig R. McClanahan" <[EMAIL PROTECTED]> on 07/01/99 12:06:17 PM
Please respond to "Java Apache Users" <[EMAIL PROTECTED]>
To: Java Apache Users <[EMAIL PROTECTED]>
cc: (bcc: Mohan Krishnamurthy/Mount Pleasant/Contr/IBM)
Subject: Re: How to specify 2 diff JDK versions to be used by Jserv ?
--
[EMAIL PROTECTED] wrote:
> --
>
> Hi,
> I am looking for something which would allow me to do the following:
> 1. Create two separate zones say A and B
> 2. Specify that servlets for A should use JDK1.1.6(thru some classpath
settings
> I hope)
> and servlets for B should use JDK1.2.1
>
> I know how to create separate zones and specify classes using the repositories
> parameter.
> But I am do not know I can implement the step 2.
> I went thru FAQ-O-Matic but I could not get any clear answers to this.
>
> Any help is appreciated.
>
The trick to doing this will be to run more than one instance of the Apache
JServ
JVM -- one per zone -- each using a different Java interpreter. The basic
outline
of the steps would go like this:
* Turn on manual starting (ApJServManual on).
* Set up mount points for your zones that are
directed to different JVM instances, on different
port numbers:
ApJServMount /zone1 ajpv11://localhost:8007/zone1
ApJServMount /zone2 ajpv11://localhost:8008/zone2
These could also run on a different machine if you like.
* Configure the Zone 1 JVM to run under JDK 1.1.6, and
define all your servlets that require this here. This zone will use
the default port (8007) for Apache--JServ communication.
* Configure the Zone 2 JVM to run under JDK 1.2.1 and
define all your servlets that require this here. Note that you
must use a different port number, because 8007 is already
being used by zone 1. I used 8008 in the example above.
* Start the JVMs manually before you start Apache.
* From your client, just use the correct prefix (/zone1 or /zone2
in the example above) to select which servlets you want.
>
> Thanx
> Mohan
>
Craig McClanahan
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]