----------------------------------------------------------------
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!!!
----------------------------------------------------------------
[EMAIL PROTECTED] wrote:
> Hi all,
> Some hosting firms claim that they give you your own JVM.
> How can i understand from servlet that my zone is in separate JVM.
> Is there any way to understand that?
If you call System.exit(0) in your servlet it will shutdown
the whole JVM, it means all zones running in that JVM.
If your zone is running in a separate JVM, other users' servlets
cannot affect your servlets in this way.
> And how can i run a JVM with a spesific user(for example root) and bind some
> zones to separate JVMs running with other users(which i give as parameter).
> Thanks in advance.
JServ by default starts one JVM automatically. You can
start manually as many JVMs under separate users as you want,
using something like:
su -l user1 \
-c "CLASSPATH=jsdk.jar:ApacheJServ.jar java org.apache.jserv.JServ jserv1.properties"
su -l user2 \
-c "CLASSPATH=jsdk.jar:ApacheJServ.jar java org.apache.jserv.JServ jserv2.properties"
and in your jserv.conf mount these separate JVMs:
ApJservMount /zone1 ajpv12://localhost:8008/zone1
ApJservMount /zone2 ajpv12://localhost:8009/zone2
Ports used by each JVM are specified in the jservN.properties files
using
jserv1.properties:
port=8008
jserv2.properties:
port=8009
Martin
--
--------------------------------------------------------------
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]