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
0 answers

Websphere MQ reconnectOnException

I have configured DMLC and SingleConnectionFactory for my WMQ listener. Everything is working as expected except the failover scenario. It enters onException method as soon as the connection is lost. That's okay. But the queue is not yet up so the…
Rajesh
  • 21
  • 4
1
vote
0 answers

Expose a Class to JMX which resides in a transient dependency jar

I have a Java Web App (Spring) with some classes exposed to JMX. Let's call this project 'A'. A has a dependency jar called B. B in turn has a dependency C. Now I would like to expose a Class in C via JMX. So I decorated the class with the…
user6123723
  • 10,546
  • 18
  • 67
  • 109
1
vote
1 answer

How to provide Date parameters via JConsole to MBean (in spring)

I have a Spring bean which is exposed as JMX managed bean. Using JConsole I can invoke the methods (managed operations) and pass input paramters of primitive types and also String values. But not able to pass input parameter of type date. Can…
Manu
  • 3,467
  • 3
  • 29
  • 28
1
vote
1 answer

JConsole didn't show the mbean attributes and methods that I defined in the mbean

I'm trying to register mbeans by spring annotation. The beans were showing correctly in the jconsole but the attributes and methods defined in the class didn't show up. What's wrong with it? here's one mbean for…
Ryan Zhu
  • 543
  • 3
  • 9
  • 20
1
vote
2 answers

How do I get the beans that spring has registered with jmx?

is there a way to get the list of bean instances that spring has registered with the mbeanserver? I saw that you can register a MBeanExporterListener on the MBeanExporter, but that only tells me the ObjectName that a bean was registered with. Can I…
gjrwebber
  • 2,658
  • 2
  • 22
  • 26
1
vote
2 answers

Spring JMX Mbean not appearing or being registered with jconsole

Just trying out a simple Spring JMX application within eclipse on a local tomcat server but can't seem to register the mbeans so they then become available to view within jconsole, within eclipse context:component-scan does appear to pick up beans…
ashley
  • 48
  • 1
  • 7
1
vote
1 answer

Tomcat... web app startup order

Is it possible to determine the start up order in Tomcat... have app1 wait for another app2 to finish deploying. I have read the docs that suggest Tomcat does not allow any guarantees.... but using spring apps is it possible to determine when an app…
user1555190
  • 2,803
  • 8
  • 47
  • 80
0
votes
1 answer

Failed to Retrieve Application JMX Service URL in Spring Boot IntelliJ IDEA Ultimate

Hello StackOverflow community, I am encountering an issue when running my Spring Boot application in IntelliJ IDEA Ultimate. Upon starting the application, I consistently receive a notification indicating that the "Failed to retrieve application JMX…
0
votes
0 answers

How to protect @ManagedOperation JMX Endpoints from accidental activation?

I have a system with lots of JMX Endpoints for various tasks. Some of them don't require a parameter to be executed but trigger delicate jobs (e.g. Deleting all deactivated accounts). Is there a way to protect them from accidental activation via the…
EyedPeas
  • 146
  • 4
  • 17
0
votes
1 answer

JMX spring configuration for specific module

At this moment we have monolith app where all mbeans are defined in single place. In future they will be migrated and placed in dedicated modules, each module will have their spring context definition. Found @EnableMBeanExport(registration =…
0
votes
0 answers

Facing issue configure spring batch admin in spring boot-Cannot resolve the name 'integration:smartLifeCycleAttributeGroup'

We need spring batch admin UI to monitor jobs. we are creating spring boot application to create and schedule batch runs on daily basis. once am running boot application below exception is coming and try to comment with jmx-context xsd and got…
0
votes
0 answers

HornetQ consumer does not receive message if one of the message process took longer time

I am working on a live Production issue with HornetQ Queue issue. Following is the stack for my application Wildfly 9.0.2 HornetQ 2.4.7 Spring 4.3 I am using netty connection for hornetq, in wildfly, following is the configuration in…
Alpesh Jikadra
  • 1,692
  • 3
  • 18
  • 38
0
votes
1 answer

Change Spring @Length annotation with JMX?

I'm using a @Length(min=constant) annotation, which takes values for constant that must be a constant expression like a final value. I'd like to change that value using JMX, but can't set min to some variable that isn't final. How can I change the…
adisplayname
  • 117
  • 1
  • 10
0
votes
1 answer

Set unique bean name javax.management.InstanceAlreadyExistsException

When I deploy 2 packages with Spring AMQP I get JMX error in the below code: @Bean public CachingConnectionFactory connectionFactory() { CachingConnectionFactory connectionFactory = new CachingConnectionFactory(HOST); …
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
0
votes
1 answer

Enabling JMX in Spring Boot

Here is my build.gradle... dependencies { compile('org.springframework.boot:spring-boot-starter-parent:2.0.1.RELEASE') compile('org.springframework.boot:spring-boot-starter-batch') …
More Than Five
  • 9,959
  • 21
  • 77
  • 127
1 2 3
8 9