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
0 answers

Change weblogic parameters through a java utility

I am working on a java utility, deployed with the application on the same server. Use case: Utility should run through a script file. I should be able to manage weblogic server to change these parameters on active server: tuning.low…
Hooda
  • 11
  • 1
0
votes
0 answers

Jboss.as mbean missing after enable jmx remote wildfly 9.0.2 Final

I am having to extract information from the datasource and other JMX information in wildfly 9.0.2.Final. When I enable JMX in wildfly the Jboss.as mbean simply disappears and I do not know what to do. Below is the image of the mbean map extracted…
0
votes
0 answers

Getting remote instance of ThreadMXBean

I want to call APIs on ThreadMXBean from remote JVM. example api: ThreadMXBean.getAllThreadIds() ThreadMXBean.getAllThreadCpuTime() I'm looking for actual code snippet instead of general advice. Essentially, it'd be a call on…
RRM
  • 2,495
  • 29
  • 46
0
votes
1 answer

What are the differences between MBean and Perf Mbean?

I'm working on a small task that uses Mbean and PerfMbean to extract performance data from PMI layer. but actually, I do not understand how Mbean and perfMbean distributed across WebSphere components, like: How many PerfMbean per cell? per profile?…
Karmel Zaidan
  • 153
  • 2
  • 2
  • 11
0
votes
1 answer

Registering multiple MBeans in Liberty

I am trying to register a newly created MBean for JMX Publisher. Looking at the IBM#s website I can see import java.lang.management.ManagementFactory; import javax.management.MBeanServer; import javax.management.ObjectName; import…
PineCone
  • 2,193
  • 12
  • 37
  • 78
0
votes
0 answers

Getting currentThreadsBusy in Jboss Enterprise Application Platform (EAP) 7.0.0

We are migrating an application from JBoss 4.2.1 GA to JBos EAP 7.0.0. The application audits currentThreadsBusy that is thread count. This does not work on EAP. Below is the code snippent javax.management.MBeanServerConnection server =…
Ameya
  • 1,914
  • 4
  • 29
  • 55
0
votes
0 answers

How to get the session statistics from JMX?

Are there any Pre-built MBeans available for session statistics(Maximum Sessions, Available Sessions etc) in JMX ? If not , please guide me to the right approach to get the session statistics from remote server. Thanks in advance.
Gopi
  • 619
  • 2
  • 9
  • 27
0
votes
1 answer

Description on JMX fields and methods JBoss

How can we add description on the fields and operations exposed for JMX? JBoss version : JBoss EAP 5.1.2 We have a Service bean as @Service @Management(MyConfigMgnt.class) public class MyConfigService implements MyConfigLocal, MyConfigMgnt { …
user1746460
0
votes
1 answer

Generic Object Name to access datasource connection manager MBean in Liberty

I am trying to access DataSource ConnectionManager MBean using java client.I am able to access it when I specify the datasource name and JNDI name in Object Name.I need a generic approach which can be applicabe for any datasource in server.xml,…
Biju N B
  • 67
  • 5
0
votes
1 answer

How to get bound server address and port programmatically in Java EE for JBoss 6.1 EAP?

I am using following code for getting values of http port for JBoss 6.1 EAP. This code worked perfectly fine in JBoss 7.1 AS. Following is the code: MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer(); ObjectName socketBindingMBean…
0
votes
1 answer

SAR file causing deployment problems in Wildfly 10

I'm trying to deploy an .ear containing a sar module in wildFly 10. I'm getting the following error summary: 2016-11-29 11:20:12,376 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy")…
inor
  • 2,781
  • 2
  • 32
  • 42
0
votes
1 answer

Remotely access a qsub compute node

Using qsub, I have submitted a long running job that spawns two Java processes; one of which is listening for Java RMI calls on some port. Say qsub assigns that job to node "compute-0-37". How can I communicate with compute-0-37 remotely (on a node…
Byte Lab
  • 1,576
  • 2
  • 17
  • 42
0
votes
2 answers

JBoss MBean NotificationListener problems

I'm having some trubles with NotificationListener on JBoss. I'm have a MBean on an JBoss, I can connet and call their methods. But when I'm trying to add Notifications y get the next exception: org.jboss.invocation.JBossLazyUnmarshallingException:…
aivaldi
  • 67
  • 2
  • 12
0
votes
1 answer

Can I invoke an operation of a JMX-MBean multiple times?

I have an application using JMX. In this application i have a MBean with one attribute and one operation. When I invoke the operation i get the message "Method successfully invoked". Now my question is, if it is possible to invoke this operation…
user2878195
0
votes
1 answer

Mbeans with JBoss

I'm trying to call a MBean deployed in JBoss, but i'm having this exception: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.io.InvalidClassException:…
aivaldi
  • 67
  • 2
  • 12