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

Which MBeans to use (and how) to programmatically determine memory lows for app (CQ5) deployed inside Weblogic

I have to write a standalone Java app that monitors CQ5, deployed inside Weblogic (especially memory usage). I was able to connect to the Domain Runtime Server in weblogic, using the class below (as found in the docs). Now, I want to know which…
MSP
  • 1
0
votes
1 answer

error while creating adminclient for websphere 7.0.0.11

I need to develop an application for managing WebSphere Application Server v7.0.0.11. I explored a bit and found out that we can use Mbeans. Actually I need to create something similar as Web-sphere's web console. My problem is that the application…
Apocalyp5e
  • 181
  • 8
0
votes
2 answers

Linux Shell Script for calling JBoss 5x JMX's MBeans

I want to call JBoss 5x JMX's mbeans with linux shell script. Is there anyway to call JBoss 5x JMX's mbeans with Linux shell script?
Sai Ye Yan Naing Aye
  • 6,622
  • 12
  • 47
  • 65
0
votes
1 answer

Cannot create nested javax.management.openmbean.CompositeData object

I know I can have SimpleType values like SimpleType.INTEGER, SimpleType.STRING in a CompositeData. But I wonder how do I get another instance of CompositeData into CompositeData. E. g.: CompositeType type = new CompositeType("My Type", "My Type",…
dimir
  • 693
  • 6
  • 23
0
votes
1 answer

How to solve "javax.management.InstanceNotFoundException" when accessing JBoss 5.1.0.GA 's mbeans?

I have the following error when accessing JBoss 5.1.0.GA's mebeans. Exception in thread "main" javax.management.InstanceNotFoundException: jboss.system:type=ServerInfo at…
Sai Ye Yan Naing Aye
  • 6,622
  • 12
  • 47
  • 65
0
votes
4 answers

JMXQuery connection - authentication failed

Hey all. Newbie question time. I'm trying to setup JMXQuery to connect to my MBean, so far this is what I got. java -classpath jmxquery org.nagios.JMXQuery -U service:jmx:rmi:///jndi/rmi://localhost:8004/jmxrmi -O java.lang:type=Memory -A…
Ace
  • 4,443
  • 6
  • 38
  • 46
0
votes
1 answer

How to access JBoss 5.1 GA 's MBeans?

I would like to access JBoss server's mbeans with my POJO class. I learned about mbeans in these site.But I'm not satisfied.Is there any ways to access JBoss server's mbeans with java class and how to apply these mbeans?
Sai Ye Yan Naing Aye
  • 6,622
  • 12
  • 47
  • 65
0
votes
2 answers

Deploying .sar files used in jBoss to weblogic

We have ".sar"(Service Archive file) used in jboss. Currently we are planning to migrate the code to Weblogic. Is there a way to deploy .sar files into weblogic. If not directly possible, is there a work around where we can deploy the services on…
Sastrija
  • 3,284
  • 6
  • 47
  • 64
0
votes
1 answer

Extract the list of MBeans registered against a Domain in JMX using Jython

I am able to get Attribute info if I know the name of an MBean, but the application I am trying to monitor generates randomly named MBeans and therefore need to be able to query JMX for the list of MBeans registered in a Domain. Here is an example…
casibbald
  • 2,805
  • 2
  • 16
  • 14
0
votes
1 answer

Error Invoking a Method on a DataSource MBean

I'm sure I'm going about this in completely the wrong way, but can someone point out the error in the code below... MBeanServer server = (MBeanServer) MBeanServerFactory.findMBeanServer (null).get (0); ObjectName mBean = new ObjectName…
Dan Forbes
  • 2,734
  • 3
  • 30
  • 60
0
votes
1 answer

Does Pelops and Hector support IPv6?

I am using pelops to retrieve data from cassandra cluster which has all its servers running on IPv6. While running this program getting following error. Exception in thread "main" java.lang.RuntimeException: exception while checking if MBean is…
samarth
  • 3,866
  • 7
  • 45
  • 60
0
votes
1 answer

Can Someone Help Me Understand Tomcat MBeans?

A while back I posted this question about monitoring a Tomcat server. Since that time I've played around a little bit and come up with a program that outputs a bunch of JMX information (MBeanServer names, MBean names, MBean attributes, their…
Dan Forbes
  • 2,734
  • 3
  • 30
  • 60
0
votes
3 answers

Can not access the Instance Data of a Singleton class from MBean

I am working against the deadline and i am sweating now. From past few days I have been working on a problem and now its the time to shout out. I have an application (let's call it "APP") and i have a "PerformanceStatistics" MBean written for APP. I…
EclipseGuru
  • 1,047
  • 3
  • 14
  • 16
0
votes
1 answer

Invoke a remote MBean in JBOSS AS 7.1.1 using http/https protocol

In General, we use the following code to invoke a MBean in JBOSS AS 7.1.1, JMXServiceURL serviceURL = new JMXServiceURL("service:jmx:remoting-jmx://(bind address to invoke):(default bind port is 9999)"); JMXConnector jmxConnector =…
Muthu
  • 67
  • 3
  • 9
0
votes
1 answer

Can JMX operations take interfaces as parameters?

I'm having problems with an MBean that takes a Map as a parameter. If I try to execute it via JMX using a proxy object, I get an Exception: Caused by: javax.management.ReflectionException at…
Vala
  • 5,628
  • 1
  • 29
  • 55
1 2 3
23
24