well,
after studied MC4j, I've already solved the problem with the code
"String urlForJMX = "service:jmx:rmi:///jndi/rmi://localhost:9004/jmxrmi"; MBeanServerConnection jmxServerConnection = JMXConnectorFactory.connect( new JMXServiceURL( urlForJMX ), null).getMBeanServerConnection();"
A little different from yours, but it works. :)
I've been wasting time finding the solution about mx4j and finally solved it by using mc4j.
Thank you. :)


From: "Dirk Weigenand" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[email protected]>
To: "Tomcat Users List" <[email protected]>
Subject: Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR
Date: Wed, 21 Sep 2005 17:58:33 +0200 (MEST)

Hi,

> --- Urspr�ngliche Nachricht ---
> Von: "jiang ying" <[EMAIL PROTECTED]>
> An: [email protected]
> Betreff: Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI
CONNECTOR
> Datum: Wed, 21 Sep 2005 23:38:36 +0800
>
> I did follow the link to SUNs web site and did the exercise. I know how
to
> use JMX, but I don't know how to get the mbeanserver that the tomcat
JMX
> support registed. And I've been searching the material about mx4j at
all
> times :(.

Mmh, using SUNs reference implementation:

MBeanServer mbeanServer = (MBeanServer)MBeanServerFactory.findMBeanServer(
null ).get( 0 );

--
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse f�r Mail, Message, More +++

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to