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

JMX: java.io.NotSerializableException: org.apache.camel.spring.SpringCamelContext

I am new to JMX. I am using Spring 4 with JMX. I am also using Apache Camel and would like to expose a stop method. I have setup everything but when clicking on the stop method within MBeans in JConsole I get the following Exception: Problem…
user
  • 81
  • 1
  • 1
  • 9
0
votes
1 answer

How is it possible to upload files using MBean?

Do you now if there is any way of uploading files using MBean? In particular, I want to be able to upload a file which is stored on my local machine to the application which is running on the remote server. I couldn't find any info source having…
Serge Mask
  • 1,331
  • 1
  • 9
  • 6
0
votes
1 answer

Apache Cassandra : Hints are getting created continuosly even if all the nodes are up

I have a 5 node apache cassandra 2.0.6 cluster with 48 GB ram and 2 TB data directory and commit log directory with 93 GB capacity. The JVM heap space for cassandra is 8 GB. I use JVisualVM Mbeans plugin for monitoring the cassandra metrics. The…
venkat sam
  • 158
  • 1
  • 12
0
votes
1 answer

JMX connection to access MBean

My environment: O/S: Windows 8.1 JRE: 1.7 Eclipse: Luna, 4.4 Worklight: 6.2 (build 6.2.0.00-20140801-1709) I have encountered the following error when Run As > Run on Worklight Development Server. I've re-installed several times, but the…
khongks
  • 53
  • 1
  • 3
0
votes
1 answer

starting, stoping web application from MBean with JBoss AS 7.2.0

I'd like to check status and start/stop deployments of a web app programatically in JBoss as 7.2.0Final. I've found that for status it can be done using MBean like that, but i don't know if it's the best way to do it: MBeanServer server =…
callafa
  • 385
  • 2
  • 6
  • 20
0
votes
1 answer

Mbeans thread safety

Lets suppose I have following mbean: public interface ExampleMBean { public float lastHourMean(); } with following implementation: import java.util.*; public class Example implements ExampleMBean { private Map dates = new…
user109447
  • 1,069
  • 1
  • 10
  • 20
0
votes
1 answer

Spring - DefaultMessageListenerContainer TaskExecutor Thread monitoring

I am using a SimpleAsyncTaskExecutor inside of my DefaultMessageListenerContainer and I would like to monitor the active thread count using a JMX mbean. I have the mbean created and connected, but in monitoring on JConsole, the active thread count…
Gaʀʀʏ
  • 4,372
  • 3
  • 39
  • 59
0
votes
2 answers

Registering time of execution of the function in the mbeanserver

I would like to know how is it possible to measure the time of function execution in Java. Being more precise, I have a Class with a method getData(). This function is used to get the data from the external serivice and is used in multiuser…
user109447
  • 1,069
  • 1
  • 10
  • 20
0
votes
1 answer

JConsole display attribute value in a spreadsheet

I have found a screenshot of JConsole at http://doc.algotrader.ch/html/Client.html and it suprised me that it's able to present attribute values as a spreadsheet. Does anyone know what magic is required here? I guess it not a standard jconsole/jmx…
reluxa
  • 305
  • 1
  • 2
  • 7
0
votes
1 answer

Third Party MBEANS operations management

I have a spring project where I have my custom mbeans(defined by user) and mbeans provided by jars. If I don't have to expose few operations of custom mbeans, I can put the mathod name values in assembler under properties : ignoredMethods. My…
sapa
  • 23
  • 3
0
votes
2 answers

javax.management.openmbean.CompositeData Nesting

We can have SimpleType values like SimpleType.INTEGER, SimpleType.STRING in a CompositeData. I want nested composite type i.e. a composite type containing another composite type. I am using the code below to perform that. But it does not displays…
piy26
  • 1,574
  • 11
  • 21
0
votes
1 answer

List all registered JMX Beans

Can anyone give a hint on how to retrieve all registered JMX Beans within a java application. I can use an application motitoring tool such as jconsole where I can see all my managed beans but what I'm looking for is an out-of-the-box tool that…
tmarwen
  • 15,750
  • 5
  • 43
  • 62
0
votes
0 answers

Running MBean inside tomcat

I have registered few MBeans in my web application (running under tomcat7) and i am able to see them on jconsole.The exposed methods are getting invoked properly. I have got certain utilities in my app which needs database connections, they can ask…
JAVAGeek
  • 2,674
  • 8
  • 32
  • 52
0
votes
1 answer

Getting Dump from weblogic server programatically

I have a requirement where I need to design a small app which contains a button. When the user clicks on that, it will connect to corresponding weblogic server and get the MDS dump ZIP file located in particular location downloaded for the user. I…
RKC
  • 1,834
  • 13
  • 13
0
votes
1 answer

How to stop an application on only one server in a cluster?

How can I stop an application deployed to a cluster on only specific servers? I want to use the AppDeploymentRuntimesMBean to issue an application stop command to a deployed application, but to only specific servers in the cluster.
user177800