Re: Managing all processes with MbeanServers on a machine from one MbeanServer
Allen Servedio <[email protected]> Wed, 30 Dec 2009 00:03:15 -0500
| Newsgroups | gmane.comp.java.mx4j.user |
|---|---|
| Message-ID | <[email protected]> |
--===============5466937467171848236== Content-Type: multipart/alternative; boundary=001485f5b0925a4724047beb0ec3 --001485f5b0925a4724047beb0ec3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, I believe you are correct that you can use the RemoteMBeanProxy to do what you are trying to do. For an example of how to use it see the http://mx4j.svn.sourceforge.net/viewvc/mx4j/trunk/mx4j/tools/src/test/java/= test/mx4j/tools/remote/proxy/RemoteMBeanProxyTest.java?revision=3D2263&view= =3Dmarkuptest case. Hope that helps (of course, considering you asked this in July - I suspect you already have your answer :-) ). Allen On Sun, Jul 5, 2009 at 9:58 AM, Christian Schneider <[email protected]= t > wrote: > Hi, > > I have to manage several java processes that run on one machine. At the > moment I already use JMX for each process but that means I have to > reserve one port for the JMX Connector to each process. Additionally I > have to know which port manages which process when I connect with JConsol= e. > > So what I would like to have is one process that acts as a NodeAgent > that scans which java processes run on the same machine and proxies the > JMX informations of each. Then it should put the JMX trees together into > one tree and offer this tree in his own MBeanServer. So I can connect to > this single JMX Server and manage all other processes through it. > > I have found the RemoteMBeanProxy classs of MX4J > ( > http://mx4j.sourceforge.net/docs/api/mx4j/tools/remote/proxy/RemoteMBeanP= roxy.html > ). > Can it be used to help with my problem? Is there perhaps even a complete > open source implementation of an MBeanServer like I imagine. > > Btw. I have already found out how to determine which Java processes run > on the same machine and how to connect to them by using he code from > sun=B4s JConsole. The nice thing with the method JConsole uses is that it > connects locally so no tcp port and addional security is necessary. > > Greetings > > Christian > > > -- > > Christian Schneider > --- > http://www.liquid-reality.de > > > > -------------------------------------------------------------------------= ----- > _______________________________________________ > Mx4j-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mx4j-user > --001485f5b0925a4724047beb0ec3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,<br><br>I believe you are correct that you can use the RemoteMBeanProxy = to do what you are trying to do. For an example of how to use it see the <a= href=3D"http://mx4j.svn.sourceforge.net/viewvc/mx4j/trunk/mx4j/tools/src/t= est/java/test/mx4j/tools/remote/proxy/RemoteMBeanProxyTest.java?revision=3D= 2263&view=3Dmarkup">http://mx4j.svn.sourceforge.net/viewvc/mx4j/trunk/m= x4j/tools/src/test/java/test/mx4j/tools/remote/proxy/RemoteMBeanProxyTest.j= ava?revision=3D2263&view=3Dmarkup</a> test case. <br> <br>Hope that helps (of course, considering you asked this in July - I susp= ect you already have your answer :-) ).<br><br>Allen<br><br><div class=3D"g= mail_quote">On Sun, Jul 5, 2009 at 9:58 AM, Christian Schneider <span dir= =3D"ltr"><<a href=3D"mailto:[email protected]">chris@die-schneider= .net</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, = 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br> <br> I have to manage several java processes that run on one machine. At the<br> moment I already use JMX for each process but that means I have to<br> reserve one port for the JMX Connector to each process. Additionally I<br> have to know which port manages which process when I connect with JConsole.= <br> <br> So what I would like to have is one process that acts as a NodeAgent<br> that scans which java processes run on the same machine and proxies the<br> JMX informations of each. Then it should put the JMX trees together into<br= > one tree and offer this tree in his own MBeanServer. So I can connect to<br= > this single JMX Server and manage all other processes through it.<br> <br> I have found the RemoteMBeanProxy classs of MX4J<br> (<a href=3D"http://mx4j.sourceforge.net/docs/api/mx4j/tools/remote/proxy/Re= moteMBeanProxy.html" target=3D"_blank">http://mx4j.sourceforge.net/docs/api= /mx4j/tools/remote/proxy/RemoteMBeanProxy.html</a>).<br> Can it be used to help with my problem? Is there perhaps even a complete<br= > open source implementation of an MBeanServer like I imagine.<br> <br> Btw. I have already found out how to determine which Java processes run<br> on the same machine and how to connect to them by using he code from<br> sun=B4s JConsole. The nice thing with the method JConsole uses is that it<b= r> connects locally so no tcp port and addional security is necessary.<br> <br> Greetings<br> <br> Christian<br> <br> <br> --<br> <br> Christian Schneider<br> ---<br> <a href=3D"http://www.liquid-reality.de" target=3D"_blank">http://www.liqui= d-reality.de</a><br> <br> <br> ---------------------------------------------------------------------------= ---<br> _______________________________________________<br> Mx4j-user mailing list<br> <a href=3D"mailto:[email protected]">[email protected]= rge.net</a><br> <a href=3D"https://lists.sourceforge.net/lists/listinfo/mx4j-user" target= =3D"_blank">https://lists.sourceforge.net/lists/listinfo/mx4j-user</a><br> </blockquote></div><br> --001485f5b0925a4724047beb0ec3-- --===============5466937467171848236== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev --===============5466937467171848236== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Mx4j-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mx4j-user --===============5466937467171848236==--