On July 27, 2018 1:53:40 AM UTC, Huxing Zhang <hux...@apache.org> wrote:
<snip/> >What if the listener isn't in control, e.g. the listener class is in a >3rd party library. >In some cases, a listener may not allow multiple instances, if the >second listener start, it will fail. Raise a bug against the 3rd party library? >Is it possible to add a new method in ServletContext called >getListeners(), and let the user to decide whether to add it or not? Yes, but we can't do that. We can't change the Servlet API. I suggest opening an issue against the Servlet API to make a change in the next version. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org