users@glassfish.java.net

Dynamically Map Servlets (programmatically, without web.xml)

From: <glassfish_at_javadesktop.org>
Date: Mon, 04 May 2009 13:13:03 PDT

Does anybody know if there is a way to programmatically inject a servlet-mapping into the glassfish container at runtime? i.e. I can map servlets in web.xml, but I'm wondering if there is a programmatic way.

Or, alternatively, does anybody know where in the glassfish source the web.xml parsing is done? From there, I could work my way to where glassfish registers servlet mappings and see if I could inject a few more without breaking anything using reflection.

Thanks!
[Message sent by forum member 'rwillie6' (rwillie6)]

http://forums.java.net/jive/thread.jspa?messageID=344922