JMX

Hi Everyone,

i am trying to configure JXM console on Ubuntu and (as usuall) encountered some strange behavior.

It works on my machine :)

it doesn't work on remote server, neither it works on other Itais' laptop.

Hostname and host IP configuration are correct (similar) on all 3 machines.

JVM version, however are a bit different 1.6.06 (the one that works on my machine) 1.6.012 and 1.6.014 the ones that don't work.

Any suggestions ?

tigor 04/08/2009 - 14:18

Sometimes you need to control JBoss status from outside of JBoss's JVM or just talk with JBoss using JMX.

Good example: starting JBoss from Installation programm and waiting upon it will started.

 

Problem is that you must have jbossall-client.jar in your classpath but you have not.

In JBoss 5 jbossall-client.jar has only references to other 20 jars via MANIFEST.MF

 

Solution is load jbossall-client.jar dynamically and obtain MBeanServerConnection using Reflection.

Pay attention, in order to create InitialContext you must to switch ContextClassLoader to your ClassLoader.

 

<code>

ClassLoader currentClassLoader = Thread.currentThread().getContextClassLoader();
URLClassLoader cl = new URLClassLoader(new URL[] {new File("JBOSS_HOME/client/jbossall-client.jar")});

mark 10/08/2009 - 08:35

A client asked my about issues related to setting up SSL and ActiveMQ and my immediate response was that there should be no problem. Indeed, I found several posts (wiki.ndgf.org/display/ndgfwiki/Standalone+Apache+ActiveMQ+with+SSL+support),listing the steps needed to setup up such a system.

 

Afterwards in the process of researching, I found that there are new protocols (st least for me) named STOPM (stomp.codehaus.org/) and AMQP (Advanced Message Queue Protocol ) supported only by several vendors but are the standard these days.

 

In one of my previous posts I mentioned Lshift (www.lshift.net/blog/), the company that developed RabbitMQ, which was written in Erlang and is supposed to be an extremely fast MQ server.

 

shlomo 07/07/2009 - 07:39

JSR 262 ("Web Services Connector for Java Management Extensions (JMX) Agents") holds much promise as an alternative to the standard remote JMX connector.

zvika 04/06/2008 - 15:47
Syndicate content