Two instances will be created when u use two alias names.
This will happen in all the servlet engines.Two instances are
required to get initialize the parameters.
thanks
ravindhar reddy
----- Original Message -----
From: Craig R. McClanahan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 02, 1999 5:15 PM
Subject: Re: more instances of one servlet ?
> Martin Kuba wrote:
>
> > Dear gurus,
> >
> > I have a tough question :
> >
> > If I have one servlet class, say "TestServlet.class" and I configure
> > the servlet engine to call it with two names, in JServ with:
> >
> > servlet.first.code=TestServlet
> > servlet.first.initArgs=foo=AAAA
> > servlet.second.code=TestServlet
> > servlet.second.initArgs=foo=BBBB
> >
> > and I call them both with
> >
> > http://machine/servlets/first
> > http://machine/servlets/second
> >
> > will I have one or two instances of the servlet ? I have tried it
> > in Apache JServ and there were two instances, one with initParameter
> > "foo" set to "AAAA", second one with "BBBB".
> >
> > Can I expect the same behavior in other servlet engines ?
> >
>
> This is standard behavior, and is explicitly required in the 2.2
specification
> (Section 3.2).
>
> >
> > Martin
> >
>
> Craig McClanahan
>
>
> > --
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > INET, a.s. Mgr. Martin Kuba
> > Kralovopolska 139 e-mail: [EMAIL PROTECTED]
> > 601 12 Brno WWW: http://www.inet.cz/~makub/
> > Czech Republic tel: +420-5-41242414/32
> > --------------------------------------------------------------------
> > PGP fingerprint = D8 57 47 E5 36 D2 C1 A1 C3 48 B2 59 00 58 42 27
> > http://wwwkeys.cz.pgp.net:11371/pks/lookup?op=index&search=makub
> > --------------------------------------------------------------------
> >
> >
___________________________________________________________________________
> > 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
>
>
___________________________________________________________________________
> 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
___________________________________________________________________________
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