On 22/08/2013 19:32, Bob DeRemer wrote:
> I’m in the process of developing a configurable server application which
> must handle various protocols, but the respective endpoints must be
> configurable.  Specifically, I would like to programmatically add both
> HTTP servlet(s) as well as WebSocket Servlets/Endpoints during the
> contextInitialized call [based on our own configuration settings], as
> opposed to having all servlets in web.xml or annotated classes loaded
> automatically.
> 
> Is this possible in Tomcat 7; and, if yes, are there any examples?  I
> know the Endpoint aspect of the question depends on JSR-356 being
> back-ported.

Yes, it is possible.

There are some examples in the unit tests:
 
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/core/TestStandardContext.java?view=annotate

Look for calls to addServlet(...)

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to