-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: StatisticsService on MX4J
PostPosted: Fri Mar 18, 2005 10:45 am 
Newbie

Joined: Tue Nov 02, 2004 2:43 am
Posts: 5
Hi everyone,

I have managed to publish StatisticsService with JBoss using

MBeanServer mbeanServer =
ManagementFactory.getPlatformMBeanServer();
ObjectName on =
new ObjectName("Hibernate:type=statistics,application=sample");
StatisticsService mBean = new StatisticsService(); mBean.setSessionFactory(HibernateSession.instance().getSessionFactory());
mbeanServer.registerMBean(mBean, on);

However, when I use MX4J, all my other MBeans show up fine, except for StatisticsService. This is very baffling because StatisticsService uses the same method to publish its data as does one of my own MBeans which works fine. I use a RMI adaptor for MX4J, and use it like this:

MBeanServer mbeanServer = MBeanServerFactory.createMBeanServer();

LocateRegistry.createRegistry(44334);
JMXServiceURL url = new
JMXServiceURL ("service:jmx:rmi://localhost:2004/jndi/rmi://192.168.43.75:44334/gmlc");
(JMXConnectorServerFactory.newJMXConnectorServer(url,null, mbeanServer)).start();


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 25, 2005 12:26 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
eh, AFAIR, I did implement it using MX4J as my JMX impl

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.