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

Getting java.lang.ClassFormatError: Duplicate method name&signature in class file when implementing PERTHIS aspectJ implementation in Wildfly 8

I am using AspectJ as AOP API in my EAR project. The project contains EJBs and MBeans and running on Wildfly 8.2.0 application server. In AspectJ, there is an aspect association - perthis which I am trying to implement in my project. This aspect…
sridhar
  • 1,117
  • 5
  • 31
  • 59
0
votes
1 answer

JMX notification listeners in OSGi environment

I'm trying to set up a configurable JMX notification listener which allows the user to select an MBean from a list of broadcaster MBeans registered on the platform MBeanServer (ManagementFactory.getPlatformMBeanServer()) mBeanObjectName = new…
Ynkfish
  • 1
  • 1
0
votes
1 answer

JMXKernelMBean not available in wildfly 8 for shutting down server

My application running in JBoss 6 AS contains a below code snippet related to shutting down of JBoss server. Now, am migrating to Wildfly 8 AS and could not find a module or api within Wildfly AS to find the class JMXKernelMBean.…
sridhar
  • 1,117
  • 5
  • 31
  • 59
0
votes
1 answer

Warning during embedded ZooKeeper Server shutdown

I simply start up a zookeeper server (3.4.6) with using the org.apache.zookeeper.server.ZooKeeperServerMain.runFromConfig(ServerConfig) method, then I try to shut it down. During shutdown I get this: 11:43:11,176 WARN {main}…
Gábor Lipták
  • 9,646
  • 2
  • 59
  • 113
0
votes
2 answers

Container level Custom JXM MBean in Tomcat 7+

I need to create a container level JMX MBean for tomcat servers to allow enterprise level monitoring of a few custom features. The examples I am finding online are focused on webapp level MBeans. I found a few examples for Tomcat 5, but it looks…
ed4becky
  • 1,488
  • 1
  • 17
  • 54
0
votes
1 answer

Difference between using Listeners and MBean to send Notifications?

I've been reading about how the GemFire distributed data store/management/cache system performs notifications. While this reading, i had this question. Gemfire seems to be using MBeans to create notifications during events. How different/suitable is…
yathirigan
  • 5,619
  • 22
  • 66
  • 104
0
votes
2 answers

How to access Memory pool mbeans

I want to access MemoryPool Mbeans through a java program so that I can retrieve the Eden Space, Perm Gen space, CodeCahe, Survior Space statistics during a period of time. How to do this? I tried java.lang:type=MemoryPool,name=Eden Space I wan not…
user348669
  • 21
  • 3
0
votes
2 answers

Specify logger level in log4j2 via JMX for unregistered loggers

I use JMX client to change logger level in log4j programatically. It works fine, but how can specify logger level for non-registered (that aren't specified in log4j2.xml) loggers? For instance I have the following loggers block:
Alexander Bezrodniy
  • 8,474
  • 7
  • 22
  • 24
0
votes
1 answer

Java Mbean attributes from HashMap

I currently have a bean which has a lot of attributes/ properties and I always have to create the interface and aswell the implementation of the interface. I want to avoid rewriting code and make my Bean more flexible and simple. Here is my current…
Sebastian S.
  • 493
  • 1
  • 5
  • 17
0
votes
2 answers

JConsole shows only operations without attributes of MBean

I have simple MBean X with 3 methods and four attributes. It implements interface XMBean (2 methods). In other class I register it: MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); X x= new X(14, 16, 17, 13); ObjectName…
peter55555
  • 1,413
  • 1
  • 19
  • 36
0
votes
1 answer

MBeanServer in TomEE/Tomcat

I have been asked to investigate feasibility of some projects. One of them requires registering and unregistering MBeans explicitly from TomEE's JMX Infrastructure (MBeanServer provided by OpenEJB, I believe). Websphere provides an implementation…
0
votes
2 answers

mbean to read the weblogic version details

I want to know which mbean give the weblogic version information. Also with that i need to know which patch is applied recently.I could not find the mbean which weblogic version and patch details.
Sreenivas M
  • 157
  • 3
  • 13
0
votes
1 answer

Configure read-only attribute for jmx mbean with xml spring configuration

How to configure read-only JMX bean with XML configuration? Official tutorial (link below) says only about annotations on methods, is there a way to do the same via…
Maxim Galushka
  • 397
  • 1
  • 5
  • 22
0
votes
1 answer

how to access WorkManager attributes value in weblogic server from our application

I want to access the MaxThreadsConstraint attribute in the WorkManager using MBean Runtime server. So help me in accessing the weblogic server's WorkManager attributes value from my Java application
0
votes
1 answer

Meaning of name attribute in JBoss MBean xml descriptor

JBoss 4/5 MBeans such as NamingAlias are defined in XML as follows queue/linked
Camilo Crespo
  • 615
  • 5
  • 15