Questions tagged [mbeans]

MBeans are JMX beans, NOT JSF/CDI/Spring/etc "managed beans". For that, use [managed-bean] tag instead.

(Mbean) Java Management Extensions (JMX) is a Java technology that supplies tools for managing and monitoring applications, system objects, devices (e. g. printers) and service oriented networks.

The MBean represents a resource running in the Java virtual machine, such as an application or a Java EE technical service (transactional monitor, JDBC driver, etc.). They can be used for collecting statistics on concerns like performance, resources usage, or problems (pull); for getting and setting application configurations or properties (push/pull); and notifying events like faults or state changes (push).

354 questions
5
votes
2 answers

JMX MBean not getting displayed on JConsole when bean declared using annotations

I am trying to write a sample JMX application. Here is my MBean class: package com.pramati.jmx; @Component @ManagedResource(objectName="modelMBean:type=simple-calculator", description="Calculator performing basic arithmetic on…
Prasanth
  • 1,005
  • 5
  • 19
  • 39
5
votes
1 answer

Java MXBean custom types

I am trying to create an MXBean with a custom attribute, but I get javax.management.NotCompliantMBeanException IJmsDestinationMBean.getAttributes has parameter or return type that cannot be translated into an open type I have read that MXBean…
sworded
  • 2,419
  • 4
  • 31
  • 48
5
votes
3 answers

MBeanServerConnection.invoke hangs forever

We have an app that invokes various remote methods on MBeans using MBeanServerConnection.invoke. Occasionally one of these methods hangs. Is there any way to have a timeout on the call? so that it will return with an exception if the call takes too…
CasaDelGato
  • 603
  • 7
  • 17
5
votes
1 answer

In an Apache Tomcat application, do MBean fields need to be volatile/synchronized for JMX updates to appear in other threads?

I've been exposing beans in our Spring web applications in case we need to make configuration changes on the fly. Recently I've been reviewing concurrency and I started to wonder what happens in other threads when you mutate one of these beans…
Arlo
  • 1,331
  • 2
  • 15
  • 26
4
votes
2 answers

How to get a MBean binding class instance

I am trying to get the instance of a service class bound in jboss-service.xml using MBean. JBoss-Service.xml has defined a BasicThreadPool which we want to use it in our code. This is what it is in JBOSS-Service.xml.
Muthu
  • 67
  • 3
  • 9
4
votes
1 answer

Tomcat: What's the meaning of a connector's "processingTime"?

What the meaning of Tomcat 6's MBean Catalina:type=GlobalRequestProcessor,name=http-0.0.0.0-8080 for the attribute processingTime ? As far as I understand this, it means the processing time of a specific connector in milliseconds since startup. But…
Roland Huß
  • 2,507
  • 15
  • 30
4
votes
0 answers

Configuring jmx_exporter with tomcat

I am trying to expose some of my spring application metrics (Spring). The metrics are mainly database connection metrics. To do so, I started by configuring a hikari connection pool, then I used jmx. To export the metrics to prometheus then…
Ennar.ch
  • 659
  • 1
  • 8
  • 26
4
votes
1 answer

Problem with remote JMX connection and Notifications

I'm trying to follow one example from the Java API documentation (http://download.oracle.com/javase/1.5.0/docs/api/java/lang/management/MemoryPoolMXBean.html#Notification) related to the UsageThreshold property of the Memory Pool Beans and…
Gotxi
  • 185
  • 3
  • 10
4
votes
1 answer

Programmatically update certificates in tomcat 8 without server restart

In order to update the certificate that I use for SSL for my server I have a code that does the import\export and validation that I need. It works well, but In order for the changes to take effect I have to restart the tomcat. I wish to avoid the…
csny
  • 164
  • 1
  • 2
  • 14
4
votes
4 answers

Can an MBean be run under Tomcat?

We have 2 applications that run under JBoss. I am looking for a way to reduce the overhead of the server. The main app runs under Tomcat. The other app is made up of MBeans. Is there a way to run MBeans under Tomcat? Alternative suggestions are…
Joshua
  • 26,234
  • 22
  • 77
  • 106
4
votes
1 answer

How to change configuration in play dynamically via JMX

I have my configuration for my Scala Play application in my application.conf file. For now, everytime I want to change the configuration I have to make a deployment. Can anybody help me finding out, how to expose the Configuration as a MBean? I…
gun
  • 1,046
  • 11
  • 22
4
votes
0 answers

Timeout with JMX monitoring on cipher suites, connecting with Ssl

Okay, so I have been working on this for a while trying to figure this out. I have JMX monitoring working from one client to the server, but not from another client to the server. To me, the only difference seems to be that one is RHEL6, the other…
briank
  • 41
  • 4
4
votes
1 answer

Accessing JMX MBean from Java and executing routines

I have a object named EXOB which has multiple routines. EXOB is a Spring bean and I want to execute the routine named routine1 which takes a String parameter. I have written this code till now: import javax.management.remote.JMXConnector; import…
Jason Donnald
  • 2,256
  • 9
  • 36
  • 49
4
votes
2 answers

Launching a JMX agent with a custom JAAS login module, setting login() to always return true

I'm building a custom JAAS module for a JMX instance. The file that is being run is the following: MBean Interface package com.this.mbean; public interface ImplementationMBean { public void setName(String name); public String getName(); …
Loco234
  • 521
  • 4
  • 20
4
votes
2 answers

How to MBean depends EJBs in JBoss 7

I'm using MBean in Jboss 7. Mbean need to call some EJBs at startup, but I cannot control ordering of startup EJBs and MBeans. In Jboss 4, I can do that by befine MBean in jboss-service.xml with depends tag. But in Jboss 7 this way does not work…
R.Kaka
  • 167
  • 6
  • 16
1 2
3
23 24