If you are using JMX-embedding, it will be a PITA. So I'll assume that you
are using the old-school Embedded class (the process is the same for
JMX-embedding, you just need to do most operations via reflection).
Wrapper wrapper = context.createWrapper();
wrapper.setName("plugin");
My application does runtime loading of plugins based on a xml file much like
Tomcat does. It also runs an embedded Tomcat server. I would like one of my
plugins to be a ServletPlugin. ServletPlugin extends HttpServlet and
implements my personal Plugin interface. Much like Tomcat, it loads the
plugi