Class SetThreadNameServletRequestListener

  • All Implemented Interfaces:
    EventListener, javax.servlet.ServletRequestListener

    public class SetThreadNameServletRequestListener
    extends Object
    implements javax.servlet.ServletRequestListener
    Make threads names created by the application server more meaningful. TODO When it will be possible it would be better to do this a component like a RequestInitializer component to work for any kind of container. Right now component can't really access the initial URL.
    $Id: d4d53998a749fbf230400a302bb6ca96c5bbf2ad $
    • Constructor Detail

      • SetThreadNameServletRequestListener

        public SetThreadNameServletRequestListener()
    • Method Detail

      • requestInitialized

        public void requestInitialized​(javax.servlet.ServletRequestEvent sre)
        Specified by:
        requestInitialized in interface javax.servlet.ServletRequestListener
      • requestDestroyed

        public void requestDestroyed​(javax.servlet.ServletRequestEvent sre)
        Specified by:
        requestDestroyed in interface javax.servlet.ServletRequestListener