Is there a way to programatically track the size of a particular session on a JEE app server, or do I have to resort to the app server's vendor specific instrumentation to do this?
Two scenarios:
- Track from within the application (a sort of JMX-type interface)
- Track from without (outside) - a generic piece of code that works on all app servers.