"Craig R. McClanahan" wrote:
> My experience with Apache JServ (over two years) is that it behaves the way I
> described. However, the meaning of "single instance" should be clarified -- it is
> actually "single instance per servlet definition, within a particular servlet
> context, which lives in a particular virtual host." If you define the same servlet
> in multiple zones, or with multiple servlet definitions in your zone properties, or
> attached to multiple virtual hosts, you're going to get separate instances.
>
> Also, if you use SingleThreadModel then Apache JServ implements a pool of instances
> per the configuration parameters in your zone properties file. Could that be the
> case here?
I am using WebMacro framework to generate my HTML templates that I use
with my servlets.
The main servlet of main extends org.webmacro.servlet.WMServlet which extends
HttpServlet, so I can not see that SingleThreadModel is comming into the picture
here.
Here is some key information about JServ options I am using and
my question was - why there are two different instances of my
main servlet initialized after two subsequent requests to the servlet?
jserv.log (another question: how can I know if my servlet is stopped?):
[18/02/2000 17:00:11:904 CET] my_zone_name/a.package.in.my_classes.MainServlet: started
[18/02/2000 17:01:08:561 CET] my_zone_name/a.package.in.my_classes.MainServlet: started
jserv.conf
------------
ApJServMount /my_mount_point /my_zone_name
jserv.properties
-------------------
....
zones=my_zone_name
my_zone_name.properties=/etc/httpd/conf/jserv/my_zone.properties
pool=false
pool.capacity=10
pool.controller=org.apache.java.recycle.DefaultController
....
my_zone.properties
-------------------------
repositories=/home/my_classes
autoreload.classes=false
autoreload.file=false
init.timeout=10000
destroy.timeout=10000
session.useCookies=true
session.timeout=1800000
session.checkFrequency=30000
servlet.my_servlet_alias.code=a.package.in.my_classes.MainServlet
#servlets.startup=my_servlet_alias // disabled
janis
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html