PDA

View Full Version : JMX with WebSphere and JBoss TreeCache


mraccola
Apr 27th, 2006, 09:52 PM
I am having a terrible time getting my beans exported into WebSphere's MBean server. I am using WAS 5.1.1 with PARENT_LAST class loader mode.

When I try using MBeanExporter without specifying a server, I get a stack trace saying no MBean server was found. When I setup an MBeanServerFactoryBean in Spring and supply that to the MBeanExporter then the bean is not found in the WAS MBeanServer, so it seems like the beans were exported to a brand new MBean server (not the embedded WAS MBean server).

I went down the route of writing a WebSphere-specific MBeanServerFactoryBean, similar to the WebLogicMBeanServerFactoryBean, but to no avail, I end up with a ClassCastException.

I believe I know what the problem is, but its just a hunch. I am using Hibernate with JBoss TreeCache. JBoss TreeCache requires you to include a version of the javax.management classes in order for use (even though JMX is not used when not deploying in a JBoss container). The version of these classes appears to conflict with the WAS version. So, I'm in a catch 22. JBoss won't accept WAS version, WAS won't accept JBoss version.

Can anyone confirm this? I saw a JIRA issue on reducing the JBoss TreeCache dependencies, but no activity...any workaround other than switching to a different cache?

Costin Leau
May 1st, 2006, 12:56 PM
Try turning on logging and see what dependencies jboss tree cache really needs. Try to feed the WSAD jmx implementation to jboss and that doesn't work, feeding WSAD the jboss jxm implementation.
If neither work then you probably have to use another cache implementation. See if you find some assistance on the jboss site. We can't really help you with your problems.