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

Accessing Weblogic JMS using Java and JMX/MBeans

I am trying to write a Java program that can browse all of the JMS queues in a Weblogic JMS server and read the messages in a given queue (but not consume them). I'm trying to use Weblogic Mbeans and JMX but am new to both. I have the following code…
Matt
  • 2,503
  • 4
  • 31
  • 46
4
votes
1 answer

Retrieving additional properties from JNDI custom-resource

I have this JNDI custom-resource configured on my Glassfish server: I also have a web application deployed, and at some point, I want to get the value configured for the "version" additional property of my custom-resource. My factory class is like…
Pedro Estevão
  • 982
  • 1
  • 13
  • 41
4
votes
1 answer

JConsole Web Application

I need to have the information and operations of my MBeans in my applications and I need this to be as a web application. My app server is Weblogic 10.3.2 Actually I need an application which can do the things(only about MBeans) like JConsole…
Neron
  • 1,500
  • 7
  • 30
  • 52
4
votes
2 answers

Accessing built-in MBeans in Tomcat programmatically

Basically I'm trying to modify the code from this tutorial here: http://docs.oracle.com/javase/tutorial/jmx/remote/custom.html so that I can access the MBeans from tomcat that are described here: http://wiki.apache.org/tomcat/FAQ/Monitoring there is…
Oz0234
  • 148
  • 1
  • 16
4
votes
1 answer

How to get Mbean from JMX Server

Hi I am trying to get the Mbean already registered in the MbeanServer and trying to invoke a method and getting IllegalArgumentException: argument type mismatch not sure why . Any help will be highly appreciated MBeanServer mbs =…
remo
  • 487
  • 3
  • 10
  • 22
4
votes
2 answers

Problem with JMX query of Coherence node MBeans visible in JConsole

I'm using JMX to build a custom tool for monitoring remote Coherence clusters at work. I'm able to connect just fine and query MBeans directly, and I've acquired nearly all the information I need. However, I've run into a snag when trying to query…
Quinn Taylor
  • 44,553
  • 16
  • 113
  • 131
3
votes
0 answers

Deploying custom MBeans to Hadoop

I'm starting development of a Hadoop application and I'd like to manage it via a couple of MBeans. I've experimented with using MBeanUtils.register and MBeanServer's register method in jar files I'm running via bin/hadoop.sh jar. The registration…
3
votes
1 answer

Accessing Websphere 7 MBeans using Sun JConsole

How do I access Websphere 7 MBeans using Sun's JConsole?
helios
  • 2,603
  • 4
  • 21
  • 26
3
votes
1 answer

Managed Mbeans from ManagementFactory in JDK1.6 - NotCompliantMBeanException:

I was using ManagementFactory to get ManagedMbeans in JDK1.5 and JBOSS 4.X. Now wanted to move my same code to JDK 1.6. The Mbean part breaks throwing the exception Caused by: javax.management.NotCompliantMBeanException: Class does not expose a…
Java Guy
  • 3,391
  • 14
  • 49
  • 55
3
votes
1 answer

Number of Active Sessions in Tomcat

I have my web services jar file deployed under webapps\nyx\WEB-INF\services in my tomcat server. Now I am trying to get no of active sessions using below code inside a web service method. MBeanServer mBeanServer =…
Shelly
  • 410
  • 7
  • 26
3
votes
0 answers

how to export MBeans data/statistics from JVisualVM

When I do a JMX connect to a java application using JVisualVM with MBeans plugin installed, I could see different MBeans configured in the application. However in order to analyze an issue. I need to export this data, from a production system, to a…
3
votes
0 answers

Non-Java JMX client

Is it possible to create a JMX client that doesn't run on the JVM? From my understanding JMX is a protocol on top of other protocols (like RMI) so it should be possible to create a C or Go client. Any reason why this hasn't been done? I am aware of…
Andrejs
  • 26,885
  • 12
  • 107
  • 96
3
votes
0 answers

ClassCastException while trying to access MBeans

I am establishing a JMX connection like: String currentHost = getRequest().getRequestURL().toString().replaceAll(getRequest().getRequestURI(), ""); String hostname = currentHost.substring(currentHost.lastIndexOf("/") + 1,…
Spielman
  • 31
  • 3
3
votes
0 answers

Random "comp not bound" error (JBoss4/EJB3)

I have this very odd error. The EAR is deployed fine. The error appears during certain jobs (like background tasks) and it complains about not being able to instantiate components that were used just fine seconds earlier by the same code. Nothing…
mariusi
  • 31
  • 3
3
votes
7 answers

How can I make "jconsole" work with Websphere 6.1?

I've deployed some Managed Beans on WebSphere 6.1 and I've managed to invoke them through a standalone client, but when I try to use the application "jconsole" distributed with the standard JDK can can't make it works. Has anyone achieved to connect…
Alotor
  • 7,407
  • 12
  • 38
  • 36