tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: other ways to register a Servlet web application
Date Fri, 30 Jul 2004 19:38:10 GMT

Hi,
Most servers expose proprietary code to do this.  Tomcat does, for
example: you'd start with ServerFactory.getServer to get the Server
object.  Then crawl down the hierarchy (Service, Engine, Host, Context)
to the webapp you want.  Then use the StandardContext#addWrapper and
related methods to add your servlet.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: bill@Wellogic.com [mailto:bill@Wellogic.com]
>Sent: Friday, July 30, 2004 3:31 PM
>To: tomcat-user@jakarta.apache.org
>Subject: RE: other ways to register a Servlet web application
>
>Hi!
>
>Yes, sorry, it must be Friday :-)
>
>meant to say ... " register a Servlet in a web application"
>
>"Anyone know of a way to register a Servlet in a web application other
than
>through the web.xml deployment descriptor?"
>
>
>
>
>
>-----Original Message-----
>From: Shapira, Yoav [mailto:Yoav.Shapira@mpi.com]
>Sent: Friday, July 30, 2004 1:27 PM
>To: Tomcat Users List
>Subject: RE: other ways to register a Servlet web application
>
>
>
>Hi,
>The web.xml deployment descriptor doesn't really register a web
>application.  The registration method is server-specific.  For Tomcat,
>it's dropping the app or its WAR into an appBase directory, or placing
a
>Context declaration for the app in the appropriate configuration
>directory, e.g. conf/[engine]/[host]/ for Tomcat 5.
>
>Yoav Shapira
>Millennium Research Informatics
>
>
>>-----Original Message-----
>>From: bill@Wellogic.com [mailto:bill@Wellogic.com]
>>Sent: Friday, July 30, 2004 12:31 PM
>>To: tomcat-user@jakarta.apache.org
>>Subject: other ways to register a Servlet web application
>>
>>
>>
>>Anyone know of a way to register a Servlet web application other than
>>through the web.xml deployment descriptor?
>>
>>Thank you -
>>
>>Bill
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>
>This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary and/or privileged.  This e-mail is intended only for the
>individual(s) to whom it is addressed, and may not be saved, copied,
>printed, disclosed or used by anyone else.  If you are not the(an)
intended
>recipient, please immediately delete this e-mail from your computer
system
>and notify the sender.  Thank you.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message