Can I use JMX to look at variables in Session objects?
I was wondering if I can u开发者_JAVA技巧se JMX to look at session variables? I'm looking for a way for an app. to look at session variables belonging to various sessions of a Servlet container.
Or any other ideas?...
thanks...
Sure, if you add mbeans for the purpose. Since you haven't told us which app server, there isn't going to be a more useful answer.
Stock Snoracle JVMs have some built-in MBeans which you can see with JConsole. App servers add whatever MBeans, if any, they feel like.
This Page describes the JMX support in Tomcat 6. It does not look to me as if it goes down to the session level. I'm reasonably sure that the servlet spec does not call forth any particular JMX support.
精彩评论