This week's book giveaway is in the XML and Related Technologies forum.
We're giving away four copies of Java XML & JSON and have Jeff Friesen on-line!
See this thread for details.
Win a copy of Java XML & JSON this week in the XML and Related Technologies forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Jconsole jmx spring mvc  RSS feed

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to monitor spring mvc application using jconsole.
 
Sheriff
Posts: 24074
54
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Malar, welcome to the Ranch!

Yes, it sure looks to me like Spring has JMX support built into it.
 
Malar Kodi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using jconsole to monitor spring mvc project and I am able to export my beans in mbeans tab in jconsole.I am able to set any attributes and invoked the operation successfully but after when I hit the local link https://localhost:8080/project it gives org. Spring framework. Web. Servlet. Pagenotfound handlehttprequestmethodnotsupported
Warning request method get not supported.
 
Paul Clapham
Sheriff
Posts: 24074
54
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Malar Kodi wrote:after when I hit the local link https://localhost:8080/project it gives org. Spring framework. Web. Servlet. Pagenotfound handlehttprequestmethodnotsupported
Warning request method get not supported.



I don't see what that has to do with JMX.
 
Malar Kodi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Paul Clapham wrote:

Malar Kodi wrote:after when I hit the local link https://localhost:8080/project it gives org. Spring framework. Web. Servlet. Pagenotfound handlehttprequestmethodnotsupported
Warning request method get not supported.



I don't see what that has to do with JMX.



When I hit the local link https://localhost:8080/project
It redirects to login page and when we enter test in textbox and hit submit, it redirects to user. Jsp and will display hi test. Now when I set the attribute username as sample instead of test in mbean and invoked get username operation it is showing sample in jconsole but not printing its value "sample"  either in eclipse log (used system. Out. Println) or when I refreshed https://localhost:8080/project/User, it is not showing hi sample. Then what is the use of setting attributes and invoking operations in mbeans tab. How will it get reflected.
Similar issue in getlogger level method, I used info level log in controller and after I changed the setlogger level to SEVERE  in mbeans tab it is not getting reflected in eclipse log.
 
Paul Clapham
Sheriff
Posts: 24074
54
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Malar Kodi wrote:Then what is the use of setting attributes and invoking operations in mbeans tab. How will it get reflected.



That's a good question, I guess, but your original post only asked whether you could use JMX to monitor a Spring application. So I'd suggest that you take a few minutes to figure out what your actual question is, and then post it along with some information which explains the question. Read our FAQ article TellTheDetails (<--- follow that link) for more information about how to do that.
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!