jmx

How to access dynamicmbeans from a jmx client

I am writing some test cases for the JMX interface in our product. I can access attributes from standard MBeans (following sun tutorial). However, I don't seem to be able to access dynamic MBeans. The attributes are fully (readable/writable) from JConsole. JMXConnector jmxc = getJMXConnector(); // Takes care of our connection MBeanS...

Ideas on how to approach a project involving Integration of APIs

I am a student and working on developing a Java Application that would serve as a "Translation Layer" between one application's web service calls to another application's JMX API. Both the applications reside on 2 different systems in the same network. So, essentially, it involves a deliverable program that converts one application's we...

Translating SOAP Web services calls into JMX API

I have SOAP web services for Application 1 available to me. And, I'd like to implement a Java application that translate Application 1's Web Services calls to Application 2's JMX API. So App 1 can manage a bunch of operations through App 2. If I understand the problem correctly, I want to build a SOAP/JMX Proxy (Remote Proxy design patt...

Monitoring a Java web application - is JMX the right choice?

Hi, We have a Java web application and we'd like to set up some basic monitoring with a view to expanding this monitoring in future. Our plan is as follows: (1) Collect generic information (e.g. memory and threads) about the virtual machine of the web container that application is running in. (2) Monitor the "state" of the applicatio...

JMX or NetMX real-world examples.

Hi I'm currently researching NetMX (and JMX by association) for a systems monitoring project. Does anyone have any real world examples of either of these libraries? The only examples I can find are manipulating a counter via JConsole which isn't helping me get a bigger picture. Thanks for any help... Jon ...

How can I determine the J2ee application server type and version ?

I need to detect information about the Application Server my EJBs are running in. The System.properties contain a lot of information about Java and the Operating system, but I need to know what type of application server and if possible even the version. Is there a way to get this information in an application independent way (JMX maybe...

How to make the JMX custom authentication work ?

I am using the password and access file based authentication on JMX. When building my JMXConnectorServer, i use the property names and it works fine. Map<String, String> env = new HashMap<String, String>(); env.put(ApplicationProperties.JMX_PWD_FILE_PROP, pwdFile); env.put(ApplicationProperties.JMX_ACCESS_FILE_PROP, accFile); connector...

JBOSS 5 Auto deployment of mbeans In JMX server-ISSUE using HTTP url

In JBoss 4.x i used to deploy *.sar files via JMX server .I use server.invoke(new ObjectName("jboss.system:service=MainDeployer"),"deploy",new Object[]{"http://"+hostname+":"+port+"/resources/jbossexample.sar"},new String[]{"java.lang.String"}); The *.sar is present in a remote location.So i used http:\. This used to be suceessfull.In...

Have you used Perf4J to collect and analyze performance metrics in Java app?

Did you use Perf4J in your Java application to collect and analyze performance stats? What was the typical pattern (using log files, utilities, UI, JMX, etc.)? Did you use annotations and AOP-based features? Did you use any JMX integration? How did you handle production configuration? Did you include performance stats views/rep...

programmatic authentication for JMX in Websphere

We would like to make JMX calls to other deployed applications within Websphere Application Server. This works fine if you do this within a web application where a user does a login with the right credentials. However if you try to make JMX calls, say, from a timer triggered part of the application that has no connection to any logged in...

Tomcat 6 Virtual Hosting Same Spring Application

I want to deploy the same .war file to two different virtual hosts on the same Tomcat 6 instance. However, I am running into a problem with the Spring framework and registering a bean. Here is the error I am seeing... org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [com.dti.servlets.Confi...

How to expose a Stateless EJB method as MBean (on Jboss)?

Hello. I have a stateless EJB (3) that uses internal cache which is refreshed automatically every 24 hours. I would like to expose a MBean method to be able to force cache expiration or even cache reload on this EJB via JMX console on Jboss 4.2. Can someone share an example on how to code this scenario? I'm totally new to JMX when it co...

Best way to version an MBean?

Essentially, I require this MBean to be built and deployed to my tomcat servers. Ideally, this would just exist as an external library and dependency, but I've found no-such official distributed jar of such (perhaps due to the simplicity). The interface and implementation of this file is likely to never change, but I don't feel that incl...

What are Design patterns useful for Notification system?

Some explanation: there are several machines(hosts) that need to be notified about any changes of some data on certain resource machine. Resource machine all time checks data and if any changes were made it notified all listeners. As I understand I should use Observer pattern, May be Absrtact Factory for generalization, What else? As I...

jmx mbean thread safety

Hi, if i have a class, that is also a mbean, and i use functions of the class in my code, in only one thread, and also call a function by jmx, should i synchronize that code? thanks ...

Weblogic health monitoring feature

Inside the weblogic console, when you click on a deployment, there is a tab named 'Monitoring' and a subtab named 'Health'. How can i expose my application health to this tab? Is there a developer's guide somewhere? http://i.imgur.com/T4agy.jpg To clarify what i want to do: Output my application background process states to this 'Hea...

Linux 64 bit machine java.lang:type=MemoryPool,name=Perm Gen [shared-rw],java.lang:type=MemoryPool,name=Perm Gen [shared-ro] not listed in JConsole

I m running a Java Application in Linux Fedora OS 64 bit machine.I connected jconsole to Remote JMX port of JDK application . I dont see MBeans java.lang:type=MemoryPool,name=Perm Gen [shared-ro], java.lang:type=MemoryPool,name=Perm Gen [shared-rw] .I dont see Perm Gen(Shared RO) Perm Gen(Shared RW) Graphs and values under Memory Tab.I...

I cannot get Java JMX server to bind to 127.0.0.1 only!

I have a java server. I want to be able to connect to it with a JMX client. I do this: JMXServiceURL jmxUrl = new JMXServiceURL(null,null,JMX_PORT); JMXConnectorServer jmxRemoteServer; jmxRemoteServer=JMXConnectorServerFactory.newJMXConnectorServer(jmxUrl, jmxEnvironment, server); jmxRemoteServer.start(); This works. I can fire up JC...

How do I programmatically dump JMX data?

I want to be able to log all JMX data accessible via jconsole. Is there a way to do this programmatically? I'm building a form of logging of the system, and I want to create intervaled data viewable with some tool similar to jconsole. How would I go about doing this? ...

Enumerating deployed EJB's and mBeans on JBoss

Hello everyone, I am trying to find a way to enumerate the EJB's and MBeans that have been deployed to a JBoss server. I was looking down the path of somehow using the JDI Context, but all I can get are the binding names and classes. Am I barking down the wrong path looking at JNDI? What should I do? Thx! ~Bolt ...