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

Remote Accessing MBeans deployed on JBoss AS 7.1.3

I have deployed MBeans in JBoss AS 7.1.3. updated standalone.xml for management connector interfaces. The document http://middlewaremagic.com/jboss/?tag=jconsole says to add systems-propeties org.apache.tomcat.util.ENABLE_MODELER to enable remote…
Nageswara Rao
  • 954
  • 1
  • 10
  • 32
3
votes
2 answers

Forcing Spring's MBeanExporter to use a particular MBeanServer

I have a web application running on JBoss 4.2.2. In order to monitor performance I have enabled the internal platform JMX server that ships with Java 5. In other words, I added: -Dcom.sun.management.jmxremote to JBoss' launch script. This works as…
waxwing
  • 18,547
  • 8
  • 66
  • 82
3
votes
1 answer

Are there (experimental) JSR-262 JMX-WS enabled Java tools or applications?

I am very interested in the Web Services Connector for Java Management Extensions (JMX) Agents and the reference implementation ws-jmx-connector. JSR 262 will provide a new opportunity for cross-platform/cross-language enterprise integration…
mjn
  • 36,362
  • 28
  • 176
  • 378
2
votes
2 answers

Accessing a remote GarbageCollectorMXBean

I can access other MXBean types, such as the RuntimeMXBean, but not the GarabageCollectorMXBean: JMXConnector connector = JMXConnectorFactory.connect(new JMXServiceURL("service:jmx:rmi:///jndi/rmi://coretest:1542/jmxrmi")); MBeanServerConnection mbs…
Robert Munteanu
  • 67,031
  • 36
  • 206
  • 278
2
votes
1 answer

How to get to the same JMX MBean server from within 2 Tomcats

i'm a bit of a noob with JMX and servers... I have a multi-node configuration (basically 2 nodes) and i'm creating and registering MBeans on the MBeanServer in both of them. The problem is the MBeanServers are different for my 2 Tomcat servers,…
Sandman
  • 2,577
  • 2
  • 21
  • 32
2
votes
1 answer

access Mbeans on weblogic

From the documentation of oracle : Domain Runtime MBean Server : This MBean server also acts as a single point of access for MBeans that reside on Managed Servers. what i want to do is to use this fact to access all my custom mBeans scattered in…
A.Alqadomi
  • 1,529
  • 3
  • 25
  • 33
2
votes
2 answers

Is ist possible to get a MemoryMXBean instance with a remote JVM?

I found this nice article which explains how to query your current memory for your VM http://recursor.blogspot.com/2006/10/memory-notifications-in-java.html My question is, is it possible to get an instance of the MemoryMXBean class from a remote VM…
Mauli
  • 16,863
  • 27
  • 87
  • 114
2
votes
2 answers

The JNDI lookup for the JTA UserTransaction is not available to MBean threads in Websphere Application Server 7

I'm trying to invoke business logic via JMX (using 'standard' MBeans) in a web application in Websphere Application Server 7 with JTA switched on and would like to know why this business logic can't see the JTA UserTransaction when invoked from an…
2
votes
1 answer

How to enumerate all the MBeans for a JDK?

I am wondering whether I can enumerate all the MBeans getting from ManagementFactory.getRuntimeMXBean?
user705414
  • 20,472
  • 39
  • 112
  • 155
2
votes
1 answer

Access JMSQueue via JMX on clustered environment

Configuration: WLS-cluster (10.3) with two nodes #1 and #2. One migratable JMSServer currently available on #1. One migratable JMSQueue. Problem: Some EJB is populating the JSMQueue with a message with timeToDeliever set to 60 sec. (not visible in…
user981797
  • 21
  • 2
2
votes
1 answer

Calling JBoss MBean functions to get threaddump

An application is using JBoss 4.2.2, and I have found it necessary to call listThreadDump(), and I expect it is in ServerInfo. I am thinking the jar I need to find this information is jboss-jmx.jar. So, how do I programmatically duplicate what is…
James Black
  • 41,583
  • 10
  • 86
  • 166
2
votes
2 answers

what is tabular dataformat in java and how i can save tabular data format in to a string array list?

Hi when you have a look at MBeans classes you will come to know few classes also return data in tabular data format of java. Can anyone let me know what is this and how i can save tabular data format in to a string array list. Java Doc Link
amod
  • 4,190
  • 10
  • 49
  • 75
2
votes
0 answers

Transform EhCache XML to Java class using annotations and register in JMX

In our project we have two modules: api and api-component, each has a cache.xml file which references another ehcache.xml file, both like this: cache.xml (in both modules)
javiergarval
  • 348
  • 3
  • 14
2
votes
0 answers

Failed to connect to MBean server at port 9001 - health check after ApplicationReadyEvent

I get the error Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.2.RELEASE:start (pre-integration-test) Could not figure out if the application has started: Failed to connect to MBean server at port 9001: Could not invoke…
2
votes
1 answer

Is there a way to enable Caffeine MBean registration?

I am using Scaffeine in my project (https://github.com/blemale/scaffeine), a Scala wrapper for Caffeine (https://github.com/ben-manes/caffeine). I also have a prometheus JMX collector embedded in my metrics API…
Berni
  • 357
  • 3
  • 10