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

java.lang:type=Runtime is not an instance of interface java.lang.management.RuntimeMXBean

final RuntimeMXBean remoteRuntime = ManagementFactory.newPlatformMXBeanProxy( serverConnection, ManagementFactory.RUNTIME_MXBEAN_NAME, RuntimeMXBean.class); Where the…
Th3sandm4n
  • 809
  • 4
  • 13
  • 23
0
votes
2 answers

JMX Manage beans from HTTP

I have a Spring application, and I have enabled JMX for some beans. For each beans, at least, I have a get operation and a set operation. I have read a little about Jolokia, and it provides an HTTP bridge between you and JMX. It provides a way to…
Perimosh
  • 2,304
  • 3
  • 20
  • 38
0
votes
1 answer

Creating thread dumps of a remote jvm programatically

I have been trying to invoke an operation on ThreadMXBean in a remote jvm. The code snippet I used invoke the operation is below bean = new ObjectName("java.lang:type=Threading"); memoryInfo =…
Dinanjana
  • 162
  • 12
0
votes
0 answers

Bizarre RMI errors when trying to expose an MBeanServer over JMX programmatically

In the documentation on Java management, in the section headed "Mimicking Out-of-the-Box Management Using the JMX Remote API" (see bottom of page), it shows you how you can manually expose your MBeanServer via JMX. Something like this: public static…
oxbow_lakes
  • 133,303
  • 56
  • 317
  • 449
0
votes
1 answer

Problems connecting collective member to controller for JMX

I have a collective with one controller and two members. When I try to call an MBean in one of the members from the controller, I'm getting an MBean object in the response, and it looks correct, except that it doesn't actually contain any data for…
Westy
  • 707
  • 2
  • 10
  • 23
0
votes
2 answers

jconsole - MBeans in double quotes

Why are the top 3 mbeans in the following picture being shown in double quotes? Metrics are shown this way
Aravind Yarram
  • 78,777
  • 46
  • 231
  • 327
0
votes
1 answer

Retrieve current server's provider URL at runtime on weblogic (non-deprecated way)

I have an Singleton Service deployed to a Weblogic cluster, i'd like to know the provider url (listen address and port) of the server on which the singleton service is deployed from the singleton itself (server side, not logs). I found this (old)…
clapsus
  • 442
  • 6
  • 19
0
votes
1 answer

How to restart jmx or Mbeann components in Karaf server without getting Insufficient roles/credentials for operation

Using Mbeans java programming How to restart jmx or Mbean components in Karaf server without getting Insufficient roles/credentials for operation
Venkatesh Boya
  • 564
  • 5
  • 11
0
votes
1 answer

How to authenticate with mbean bypassing jmx.access file when using JAAS module

I amfacing one issue with mbean authentication. Issue is i need to always change my mbean jmx.access file to match with different users for authorization rule. Somehow i need to bypass this jmx.access file and authenticate using my custom JAAS login…
Sohan
  • 6,252
  • 5
  • 35
  • 56
0
votes
1 answer

Restart Jboss will get error when I added my created service(MBean) to jboss deploy route

I created one service(MBean), I thought it could be start/stop normally. I have my MBean in the structure as my previous problem had said: https://stackoverflow.com/questions/3177569/a-created-jboss-service-cant-be-stop-normallymbean But today, I…
zhaojing
  • 585
  • 3
  • 11
  • 33
0
votes
1 answer

How to control order of deployment (EJB first and then MBeans deployment) in Wildfly 8.2.0 AS

I am migrating an EAR application containing MBeans from JBoss 6 AS to Wildfly 8.2.0 AS. In my EAR application, MBeans depend on EJB before initialization. In JBoss 6 AS, @DependsOn annotation used in MBean maintained the sequence of the deployment…
sridhar
  • 1,117
  • 5
  • 31
  • 59
0
votes
0 answers

Connect to JMX MBean from JBoss EAP 6.4

I am trying to connect to JMX using my java code from JBoss EAp 6.4, but I am getting an error saying: java.lang.IllegalArgumentException: MBeanServer argument must be MBean server where this server is registered, or an MBeanServerForwarder leading…
Swaraj Shekhar
  • 187
  • 1
  • 7
  • 28
0
votes
1 answer

How to invoke MBeans from command prompt in Wildfly 8.2.0

I have below queries. Is there any way to access JBoss MBeans in EAP 6 (wildfly 8.2.0) through Command Line like twiddle in EAP 5 (JBoss 6 AS) ? Whether JBoss EAP 6 has any command line tool (like twiddle.sh) to invoke custom MBeans ? Please help.…
sridhar
  • 1,117
  • 5
  • 31
  • 59
0
votes
1 answer

RHQ - JMX plugin - Update attribute value

I'm using RHQ JMX plugin to get operations and attributes of one custom Mbean. It is working but I would like to add the possibility to update an attribute value and I can't use the setter function to update it as it's not recognized as an…
Jessica
  • 3
  • 3
0
votes
0 answers

Creating custom Web application to List EJBs Deployed on WebLogic 10.3.X

I need to create a seperate application which can list all the EJBs deployed on Weblogic along with all the attributes displayed on deployment page for that EJB. I want a pointer to get the reference to MessageDrivenEJBRuntimeMBean with which I …
Chaitanya K
  • 1,827
  • 4
  • 32
  • 67