Abstracting from http.server / http.servlet transport
An jaxws webservice is currently launched either as standalone or in a servlet environment. For the standalone mode you can at runtime create endpoints reffering to instance of your implementation, where as for the servlet you'll need to have them in your descriptor file at configuration time.
I have an application that launches endpoints at runtime (depending plugins etc.) and is currently implemented using the standalone http server, but I also want to be able to run it in the servlet environment.
I hacked together something similar to the WSServlet making the list with adapters in the WSServletDelegate public domain and thus allowing to add / remove adapters at runtime.
This is all getting a lot of hassle for something simple: abstracting wether it is run standalone or within an servlet. Am I overlooking something? Shouldn't this be 'out-of-the-box' functionality?