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

Exposing attributes of an abstract class via mbeans

I have an abstract class which implements an mbean interface. I have declared 2 getters in the interface. When i run the code, using jconsole i can access the 2 getters but i am not able to access the 2 attributes which are declared in the abstract…
1
vote
2 answers

Maximum number of MBeans in JMX

Is there a maximum number of MBeans a JMX application can support? If there is, what is that? Thanks in advance.
Diferdin
  • 1,252
  • 1
  • 14
  • 30
1
vote
0 answers

Does jconsole strip out line endings?

I'm trying to paste a String into an MBean attribute using jconsole. Of course, I've done this 1e3 times with no difficulties. However, if the string I'm pasting includes line endings, jconsole appears to replace these with spaces - and it does so…
Neil Mc
  • 11
  • 1
1
vote
2 answers

Access Camel MBeans in JConsole exposed via WebSphere 7

I'm trying to expose Apache Camels MBeans through JMX so that I can manage the deployed Camel instance in a WebSphere Application Server (7.0). Actually, I don't know if this is even related to Camel, but more an issue on how to expose MBeans from…
Petter Nordlander
  • 22,053
  • 5
  • 50
  • 84
1
vote
1 answer

Mbean registered but not found in mbean Server

I have a problem about the mbeans. I have created a simple mbean and I have registered it on the default mBeanServer that is run (Via eclipse or java -jar mbean.jar) and in the same process if I try to fouund the mbean registered with a simple…
Prisco
  • 653
  • 1
  • 15
  • 30
1
vote
1 answer

Registering an MBeanServerConnection as an MBean in an MBeanServer

I thought it would be useful to aggregate the remote MBeanServers that a JMX aggregation server has connected, but I found that registering the MBeanServerConnection as an MBean in an MBeanServer throws a non compliant MBean exception. Surely…
Hellblazer
  • 779
  • 5
  • 10
1
vote
0 answers

Using JMX MBean, how to customize notification fields in JConsole

After googling around this subject, I did not find much information about JMX Mbean Notifications. Official doc : http://docs.oracle.com/javase/tutorial/jmx/notifs/index.html Old doc (2002) :…
JBE
  • 11,917
  • 7
  • 49
  • 51
1
vote
1 answer

Getting Instance of MBean service in JBOSS AS 7.1.1

I am trying to access a MBean service deployed into JBOSS AS 7.1.1. My MBean service is also a Queue Listener. I am trying to get an instance of this MBean service to register it as a Queue Listener in another SAR. I tried out this code but it is…
Muthu
  • 67
  • 3
  • 9
1
vote
1 answer

Retrieve the name of webapps deployed on Tomcat using JMX MBeans

Is it possible to determine what all webapps are deployed on a tomcat server using the mbean exposed?
1
vote
1 answer

Insert MBean interceptor

I am working in a java project which implements MBeans and my need is to intercept MBean and change/add their properties before registry. Example : domainName:name=myMBean --> domainName:name=myMBean1,type=myType I found this link which presents…
Mohammed
  • 115
  • 1
  • 13
0
votes
1 answer

Jboss Service depending on JNDI resource

I have written a Jboss4 MBean which relies on other JNDI resource named XAOracleDS and defined in an xml datasource file (*-ds.xml). But when I restart my JBoss instance, I have a javax.naming.NameNotFoundException: XAOracleDS not bound due to…
1tox
  • 327
  • 1
  • 4
  • 14
0
votes
1 answer

getting http request info from thread

is it possible to get the http request information from a thread (not the current thread)? I want to be able to enumerate all the live threads and get the request uri for each of them. any ideas? thanks
isapir
  • 21,295
  • 13
  • 115
  • 116
0
votes
1 answer

How to modify an attribute which have a no-primitive data type with JMX?

I would like to know if it's possible to modify java.awt.Color attribute through the jConsole. I have a class like this : public class MyColor implements MyColorMBean { private Color background; public Color getBackground() { return…
tkdbaba
  • 13
  • 2
0
votes
0 answers

Get MBeans when using micrometer-registry-prometheus dependency with actuator

I am evaluating and learning about options for monitoring metrics for Java applications with SpringBoot (2.6.6) and I have done some testing with Prometheus, but there are some differences between using the Prometheus Java agent and using from the…
CarlosS
  • 161
  • 1
  • 13
0
votes
1 answer

WildFly27 Jakarta 10 JMS Topic queue sends message twice to same MessageBean although acknowledge() called

I have a stateful local session bean in one ear and a mbean in another ear both deployed on the same WildFly 27 standalone-full instance. I have a topic set up in standalone-full.xml:
ranxero
  • 11
  • 1
  • 4