Re: listeners
nevermind - the issue was that they have 2 web.xml files in the source tree (don't know why) and I changed the wrong one. BTW thanks for the earlier answers - that cleared up a lot On Thu, Mar 29, 2018 at 12:31 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Greg, > > On 3/29/18 12:25 PM, Greg Kaszycki wrote: > > On Thu, Mar 29, 2018 at 11:59 AM, Christopher Schultz < > > ch...@christopherschultz.net> wrote: > >> > >> Greg, > >> > > On 3/29/18 11:16 AM, Greg Kaszycki wrote: > >>>> Is there a way to query tomcat for registered listeners? > >> > >> There are tons of "listeners". What did you have in mind? > >> > >> You can get lots of stuff via JMX. > > > I am trying to register a listener and it doesn't seem to be > > getting hit. I am trying to see if it is registered > > What kind of listener? How are you registering the listener? How are > you checking to see if it is "getting hit"? > > - -chris > -BEGIN PGP SIGNATURE- > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlq9FOQACgkQHPApP6U8 > pFh5sA/+P1TEVtufwh3gluxSj1d5bSq0BPluIWgeQY7ms6lsoYP8tucXvRrHeSgi > OxY5UVmDhQXxvJog/Sjg5+HrcVhzLPh3KdsJh08Bg1V1xmswvNnCF9DeqCf0GXmm > 2h8jLIihK5Vw7cf6boXHcR2qNTH8vaXtG0kmacbs8hjxkIvBJ5qe33l2tWZsSvAq > NC2BSOVBGh+kJwIlTFVSffbdSELHbzd8hUU2zx4c/CRdGrmMIF3Kqgw8xJpfwdey > 03xSIWmTSV9DwfznyQcGq6KfGq6fEJhf7J18Jl0N1P2SJjovpVrS+5NhmhpekxGK > 1IhcFR0u3sNCxntQEtcoOzD3uZPA/Xey3n1cGqbcViqveJncGLcCSbsTJGQIltDg > VcV1zpJUnnMdRktjLoiPNC7E2DWa9vJLmZZ5crN1VxQaV1zIbpo+ZJukcydnYi8V > dLWAgI4VR7zUqTlQh32s/VN99rgabdHVS7mhThVFczHvCeYIlrnH5Uo6QLhunwnD > vQkeX8ff3w1G2FgoOWhe6jxg2qfX2+j92DmQYxnlJhYiPvQ45R75zn1ew5/1DdP9 > UBchE9I6GV35Bx++M/dQSzr5qYU90hE8aVeK5f65R+g9l9h5ommJjKZJxSfh5Md6 > 0kkBVQv+CYXisnN/pugQxUe7N34xRpV6D76L/oabHMf3t4saXeI= > =xwk9 > -END PGP SIGNATURE- > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- Greg Kaszycki 919-244-3789
Re: listeners
I am trying to register a listener and it doesn't seem to be getting hit. I am trying to see if it is registered On Thu, Mar 29, 2018 at 11:59 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Greg, > > On 3/29/18 11:16 AM, Greg Kaszycki wrote: > > Is there a way to query tomcat for registered listeners? > > There are tons of "listeners". What did you have in mind? > > You can get lots of stuff via JMX. > > - -chris > -BEGIN PGP SIGNATURE- > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlq9DXwACgkQHPApP6U8 > pFgw5A/+LgnYaXbo/3Rp1RngjqxEwvhDVn5tw12J3/o2QunjiXSW9X716Jxo/dBE > +jevPLxvL01vKOzVVFOXlY0GHPJnN18jdEbZx1yLhMZWvjCSFW3JvNSvS66sbOJD > IMiIc0peeKui9Ly1G4IknMPvbtzQHDbKu1brCUwswvldWWrMW6cPqMya49PFQoHP > bFDDDvIeuSijDdiZPkGiKt27H6kqARbnuBcoup3ZbnNRVZpgiI7CMHsB19/jxp7E > SkPfIjWFommxkHUms8UkMug1b/AjLM1PaI9fCMltRuOp4jki6PpDufCexB9uHaTF > WJsyVHNwln4phjwTYGDW5r4NV11ThfdAx9fRnimCxlJL6w0cMnFYY5cJDn4mmXNQ > lsDa4Rcbg0NQbmNzM/agPXqtLXY1NQHPGLl7VqXsGonLr2BoetH4Fah696fQOd+r > c4wmIAu7JB5YOptcA6DbfDoPjISSWMeBQ5xnOu02Hew7nTb8/Zz1D9lMD3D2aqyK > dfHpaQ204J2ZIeLMJu7N/k4Ol+gx52uzu+uI0Dy2n2LVc7/l2pCluUMRPabwF5Uc > PlNP+8HYDtb1gdq6GcysbDlCFYXZzRRei/kHy5dgh93q1Tbmc+ImS7DlLTTDsjaM > E2b+e6fZiFdPVC5lDUh2TPp3B5Fs6jTsJTpH3xP4BQWOAfXPdP4= > =l/DJ > -END PGP SIGNATURE- > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- Greg Kaszycki 919-244-3789
listeners
Is there a way to query tomcat for registered listeners? -- Greg Kaszycki 919-244-3789
tomcat jmx questions / help
Tomcat version 7.0.82 I have some questions about tomcat monitoring and jmx. The short version is that I am trying to get session information about users logged into my app. I see documentation about different ways to get to the jmx beans but I don't understand the relationship between them. http://localhost:8080/ takes me to the tomcat homepage and I can click on the manager button and get to a page with some links to application folders (I've set my role). Do they use jmx beans? I can also do like: http://localhost:8080/manager/text/sessions?path=/. and it returns number of sessions. Is that accessing an mbean? How does that name relate to the folders under the tomcat manager folder? I can also access http://localhost:8080/manager/jmxproxy/?get=java.lang.type=Memory=HeapMemoryUsage and get memory usage stats. Is that accessing an mbean? I also don't see how these names relates to going to jconsole and looking at the mbean tab and accessing Catalina/Manager/examples/localhost. The names of the attributes in jconsole don't seem to match the names of the beans that I can access like the memory example above. I found that memory example above online, but where are these beans documented? The documentation in https://tomcat.apache.org/tomcat-7.0-doc/monitoring.html said I could also access it through a url like: service:jmx:rmi:///jndi/rmi://localhost:8081/jmxrmi but I could not get that to work. Would that access the same bean(s) as the other examples? I can set CATALINA_OPTS to do the jmxremote enabling as described in , but what exactly is that enabling? Is that what enabled the mbeans that I accessed? Lastly, I created a listener (implements HttpSessionListener) and configured it in web.xml but when I set a breaklpoint in IDEA, it never hit it. When exactly does a session get created? when someone goes to any page on the host? When they log into the app? -- Greg Kaszycki 919-244-3789