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
0
votes
1 answer

How to send message to ServiceBus with the use of AmqpTemplate?

I need to send message to ServiceBus with custom message header properties like ContentType, Message ID, etc. I am thinking to use Spring AmqpTemplate for sending message which will provide facility to set message header. I have not found SDK for…
Abhishek Kumar
  • 435
  • 1
  • 6
  • 16
0
votes
0 answers

Spring integration JMX messages are missing when deployed in weblogic

With the below code I am trying to send messages other application. In Tomcat, working fine - messages sent is equal to messages received in jconsole. but when I deploy in weblogic, found sent message count is not matching with received count in…
Phani Kumar
  • 61
  • 2
  • 10
0
votes
1 answer

JMX_exporter with Prometheus and Grafana

I have SpringBoot application and i want to implement jmx monitoring over it. I have successfully implement the monitoring on the services with prometheus counter, and for the machine with node_exporter. After that i have connected it with grafana.…
xmlParser
  • 1,903
  • 4
  • 19
  • 48
0
votes
1 answer

How can I implement JMX in my java code to show measure on JMX counter

How can I implement JMX in my java code to show measure on JMX counter. what XML file I need like MBEAN. Please I need some guidance its very imp. I ultimately build a jar file and run from the terminal . So what all to implement there in the code…
addytheriot
  • 31
  • 1
  • 6
0
votes
0 answers

JMX initialization in eclipse

I have a Java class which I am running from Eclipse. I want to implement jmx counters on the Eclipse and not on the jconsole. The class doesn't have any jmx initialization or spring initialization. It's a normal Java class . Is there any API which…
addytheriot
  • 31
  • 1
  • 6
0
votes
1 answer

How to register Spring Data Mongo MBeans using Spring Java Configuration?

I would like to enable the registration of the Mongo JMX MBeans as described in the Spring Data MongoDB Manual, not using the JMX configuration, but in Java. So I look for the corresponding Java code for the element. Does this exist?
Gregor
  • 2,917
  • 5
  • 28
  • 50
0
votes
1 answer

The Value set in ThreadLocal for Spring JMX works inconsistently

The Value set in ThreadLocal for Spring JMX works inconsistently @ManagedResource(objectName = "MAN-TEST:name=SetValue", description = "Set Value for JMX") @Component public class ValueSetJMX { private static ThreadLocal jmxValue = new…
Cork Kochi
  • 1,783
  • 6
  • 29
  • 45
0
votes
1 answer

Spring 3.2.3 MBeanExporter doesn't honor bean property

I exported a bean via Spring MBeanExporter, this bean implements NotificationEmitter and behaves like it was a NotificationBroadcasterSupport. So it esposes the method public MBeanNotificationInfo[] getNotificationInfo(), returning a static instance…
ugo
  • 284
  • 1
  • 2
  • 10
0
votes
1 answer

Is there a way to turn a Spring Scheduler task on or off via a JMX switch?

I have a very simple java class which basically has some code in it - which runs via the Spring scheduler mechanism. I am not very familiar with JMX - unfortunately, and I have been given a ticket which relates to turning it on or off via a JMX…
MickeyThreeSheds
  • 986
  • 4
  • 23
  • 42
0
votes
1 answer

How to access mulesoft application metrics using JMX

I want to expose some custom application metrics like how many records processed to JMX in mulesoft flow. My application is spring boot application. Any idea on how to achieve this? Thanks & Regards, Vikas Gite
Vikas Gite
  • 305
  • 5
  • 24
0
votes
1 answer

Spring Boot autowire MBean?

Spring Boot won't autowire a MBean I exported from another web application with: @Component @Service @ManagedResource(objectName = IHiveService.MBEAN_NAME) public class HiveService implements IHiveService { @Autowired(required = true) …
uti.devel
  • 159
  • 3
  • 14
0
votes
1 answer

how to export spring task:executor as mbean?

We are using task:executor in our spring integration application. We need to monitor this threadpool via mbean browser. So far we have good control over all spring integration channels , message handlers etc and those are showing in our mbean…
user509755
  • 2,941
  • 10
  • 48
  • 82
0
votes
2 answers

Jconsole cannot connect to local jmx application

I have a Spring boot project where I use spring-boot-starter-actuator and io.dropwizard.metrics. org.springframework.boot spring-boot-starter-actuator
YLombardi
  • 1,755
  • 5
  • 24
  • 45
0
votes
1 answer

Change the default behavior of JMXReporter

I'm trying to push custom gauge type metrics of my application to JMX using com.codahale.metrics.JmxReporter. It seems like JMXReporter by default pushes the metrics to the endpoint /metrics which appends an attribute called .value to the metric…
barath
  • 762
  • 1
  • 8
  • 26
0
votes
1 answer

Spring JMS: Why CachingConnectionFactory is created always with started=false?

I have a sample app demo working with: Spring Framework 4.2.5 ActiveMQ 5.13.3 I have the following: @Bean(name="connectionFactory") public CachingConnectionFactory cachingConnectionFactory(ActiveMQConnectionFactory…
Manuel Jordan
  • 15,253
  • 21
  • 95
  • 158
1 2 3
8 9