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

How to pass client-side environment to MBean method invocation

One of our apps exposes management MBeans that allow developers to prod it in various ways. These are typically long-running operations such as reprocessing historical inputs, refreshing reference data, etc. If these operations fail or encounter…
Andrzej Doyle
  • 102,507
  • 33
  • 189
  • 228
0
votes
2 answers

How to make custom Spring MBeanExporter use the @Managed... annotations on a candidate class

I've written a custom Spring MBeanExporter that takes a collection of pre-created objects and creates the mbeans for them. It apparently uses the "default" strategy for determining attributes and operations, just taking the existing properties and…
David M. Karr
  • 14,317
  • 20
  • 94
  • 199
0
votes
1 answer

JMX MBeanInfo and Descriptors

I am struggling to understand how to take advantage/use the MBeanInfo (and related MBeanAttributeInfo, ModelMBeanInfo etc.) and related to it Descriptors. As far as I understand MBean*Info is simply like a Class object containing information on…
Bober02
  • 15,034
  • 31
  • 92
  • 178
0
votes
1 answer

How to use a specific database only for managed operations

We use spring and jpa 2.0 I have managed beans that call the same methods than the client does. I want the managed beans to run on the slave DB and the client calls on the master DB. Any idea on how we can do this ? Thanks Here is my xml file…
mordekhai
  • 451
  • 1
  • 3
  • 12
0
votes
1 answer

JBoss 5 JMX depends-list HOW-TO

I've been not able to use depends-list to know during runtime how many MBeans does the system administrator has defined for an specific topic. My definition of the bean:
user1026870
0
votes
2 answers

How to list all MBeans using JMX client

I am trying to list all published applications using JMX client 'jconsole' but nothing seems to be happening as the screen stays on that console. Is there a command to use to list all published applications?
Chelseawillrecover
  • 2,596
  • 1
  • 31
  • 51
0
votes
1 answer

JConsole always returning successful even though exceptions occur

I am trying to get a JMX MBean operation to return something other than "Method successfully invoked", from JConsole. When an exception occurs in the invoked method, I would like to see "Method failed" from JConsole, rather than "Method…
sworded
  • 2,419
  • 4
  • 31
  • 48
0
votes
1 answer

How to change the run time properties of a registered Mbean?

I am working with a J2EE project,my goal is to Monitor/Configure web application in the application server(Glassfish 3.1.2).For that I hope to use Mbeans. I registered my MBean as below, MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();…
0
votes
1 answer

Spring JMX cascading/federating

I have a webapp running under Spring 3.2 and exposing a MBeanServer. Nevertheless this webapp can be run through different VM and so have multiple instance of JVM on different VM. I want to modify MBeans on each MBeanServer instance, and I know…
Kakawait
  • 3,929
  • 6
  • 33
  • 60
0
votes
1 answer

JBoss 7 MBean dependency on another MBean

I am working on migrating project from JBoss 4.2.2 to JBoss 7.1.1. We had Configuration MBean and other beans on start were connecting to this Configuration MBean to get some parameters. So jboss-service.xml configuration was like that:
Alex Kartishev
  • 1,836
  • 3
  • 18
  • 25
0
votes
2 answers

removing duplicates from xml file use xslt

Here is an example where i have two sections with same name, but the properties in these sections are diffrent, I would like to merge these two sections and duplicate propeties has to replace with the latest one that is added to…
kumar
  • 389
  • 1
  • 9
  • 28
0
votes
1 answer

Viewing Tomcat 6.0's MBeans in Jconsole

I'm trying to write a small agent to control tomcat, and right now it looks like JMX is the best option for me. Using the manager http service I can see that there are all sorts of neat mbeans registered that give me all the info I need. Only…
Brian
  • 3
  • 1
  • 3
0
votes
1 answer

EJB Lookup inside SAR

My EAR contains an ejb file and a sar file. I cannot do a lookup on a deployed ejb bean inside of a MBEAN contained in the SAR file. I am getting NameNotFoundException. How can I do a lookup in the ejb2x home interface inside the mbean service…
Michael Henrique
  • 235
  • 1
  • 2
  • 10
0
votes
1 answer

Access Infinispan MBeans programmatically

I am using Infinispan 5.2.1 and tried to access the MBeans via my Java program. But no luck. I assume Infinispan MBeans are registered in Platform MBean server. I can see all the MBeans correctly in Jconsole but not with the program. My Infinispan…
era
  • 391
  • 4
  • 24
0
votes
2 answers

InvocationException on connecting to MBean server from Spring

I am trying to connect to MBean server from my Spring application. Below is the code: public void connect() throws Exception { MBeanServerConnectionFactoryBean bean = new MBeanServerConnectionFactoryBean(); …
Vikas Sharma
  • 1,235
  • 2
  • 27
  • 53