Questions tagged [spring-jmx]

The JMX support in Spring provides you with the features to easily and transparently integrate your Spring application into a JMX infrastructure.

Spring’s JMX support provides four core features:

  • The automatic registration of any Spring bean as a JMX MBean A
  • flexible mechanism for controlling the management interface of your
  • beans The declarative exposure of MBeans over remote, JSR-160
  • connectors The simple proxying of both local and remote MBean resources

These features are designed to work without coupling your application components to either Spring or JMX interfaces and classes. Indeed, for the most part your application classes need not be aware of either Spring or JMX in order to take advantage of the Spring JMX features.

See the Spring Framework Reference Documentation for more information.

Resources

122 questions
1
vote
1 answer

meaning of valid bean in spring's JMX framework and ways to create a valid bean for autodetect of MBeanExporter

I'm new with spring and I'm currently learning about jmx support that spring provides. I understand that MBeanExporter is one of the core classes of spring's JMX framework. So I was trying to play around with it. (I'm following the tutorial provided…
Lavish Kothari
  • 2,211
  • 21
  • 29
1
vote
1 answer

Exposing ThreadPoolTaskExecutor as MBean in JMX

I've switched from ThreadPoolExecutor to ThreadPoolTaskExecutor in my Spring Boot project just because according to it's documentation: This class is well suited for management and monitoring (e.g. through JMX) I've created a bean of…
Heisenberg
  • 5,514
  • 2
  • 32
  • 43
1
vote
1 answer

Spring boot devtools fails to restart the application

I am using Spring Boot 1.5.6 with devtools support. But when I change, the devtools will try restarting the code. Which is throwing Failed to unregister LiveBeansView MBean; nested exception is javax.management.InstanceNotFoundException error. Stack…
Anil Bhaskar
  • 3,718
  • 4
  • 33
  • 51
1
vote
1 answer

Trying to trigger JMX Mbean functions from command line

My application is running on Wildfly-8.0.1. Currently, I am able to trigger MBean methods through JConsole using service:jmx:http-remoting-jmx://localhost:9990. I want to write some script to trigger those commands but I didn't find a supporting…
Suresh Namala
  • 306
  • 4
  • 14
1
vote
1 answer

Spring integration with jmxtrans-agent to monitor bean

I am using Spring integration but want to use jmxtrans-agent to monitor my splitter. Like following simple example, I try to count the number of request arrive at splitter. @ManagedResource public class Splitter { private final AtomicInteger…
edi
  • 223
  • 5
  • 12
1
vote
1 answer

Spring 2.5.6 JMX NotificationPublisher invocation throwing NPE

I am getting Caused by: java.lang.NullPointerException sometimes. Looks like spring is not able to inject org.springframework.jmx.export.notification.NotificationPublisher properly. I am using spring 2.5.6 and deployed in WebSphere 7. How can we…
JB.
  • 41
  • 8
1
vote
2 answers

How to create JMX client which can interect with multiple jmx server using different serviceUrl

I am using Spring jmx to create jmx client which can interact with Cassandra cluster to get a mbean object attribute Livedicsspaceused. So this Cassandra cluster had 3 node hence different serviceUrl (each having different ip address). Now I…
Laxmikant
  • 1,551
  • 1
  • 13
  • 30
1
vote
1 answer

How to expose a property in MBean description

The following managed operation exists in the project: @ManagedOperation(description = "Some description") @ManagedOperationParameters({ @ManagedOperationParameter(name = "key", description = "Some description"), }) public void…
Pavel
  • 4,912
  • 7
  • 49
  • 69
1
vote
1 answer

Spring JMX Integration Issue

I am having a java class like below, public class MyImportService { Logger m_logger = Logger.getLogger(MyImportService.class); @Autowired @Qualifier("tService") private TService m_tservice; public Integer import(String…
robin
  • 1,893
  • 1
  • 18
  • 38
1
vote
0 answers

How to integrate JMX into tomcat app or what I doing wrong?

I tried to configure JMX with no luck.. What I did? Created class: public class JmxTestBean implements IJmxTestBean { private String name; private int age; private boolean isSuperman; public int getAge() { return age; …
Alexus
  • 436
  • 1
  • 6
  • 19
1
vote
1 answer

How limit access to JMX attributes

Our application has requirement to limit user access to subset of JMX attributes and operations for a given MBean. e.g. the C3P0 MBean exposes a lot of attributes/operations. Let's say we don't want users to change min pool size. Hence we would like…
illcar
  • 439
  • 1
  • 5
  • 13
1
vote
1 answer

Porting application defined MBeans from OC4J

Applications that use Spring JMX deployed on OC4J have their "Application Defined MBeans" visible through Enterprise Manager. When these applications are ported to Weblogic 12c, can these MBeans be made visible in the Weblogic console, and if so,…
wytten
  • 2,800
  • 1
  • 21
  • 38
1
vote
1 answer

Spring JMX Bean Not Visible in JConsole

I know this has been asked here many times, but I couldn't get a solution to my issue. I have setup a basic example to expose a POJO as a JMX bean and wish to view it in JConsole. I'm following the Spring Docs so not sure why this does not work. My…
clicky
  • 865
  • 2
  • 14
  • 31
1
vote
0 answers

How to add listener to JMX to update?

Consider the following JMX code: public class UserJMXBeanExpose { private UserJMXBeanImpl userJMXBean; @Required public void setUserJMXBean(UserJMXBeanImpl userJMXBean) { this.userJMXBean = userJMXBean; } public void init() throws…
lifeat stake
  • 65
  • 1
  • 9
1
vote
1 answer

JMX and REST API. How can I build a bridge between them?

I have written a code which exposes data from my JVM application via JMX Bean. I can see these values in JConsole. How can I grab these values from jconsole, do I need to write another program. And also, how can I use REST API to display these JMX…
lifeat stake
  • 65
  • 1
  • 9
1 2 3
8 9