4

I'm following this example to set up a HttpSessionListener for my Spring app. Unfortunately, I'm not able to modify any of the XML files, so my problem is the following line:

<web-app ...>
    <listener>
      <listener-class>com.mkyong.SessionCounterListener</listener-class>
    </listener>
</web-app>

Is there any way to add the listener programmatically without modifying any XML file? And if so, how and where to do it?

vauge
  • 801
  • 4
  • 14
  • 30

0 Answers0