Can I sort blogs by the age of their starters?
Use jdk 1.5 mbeans with mx4j
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > Java Programming > Use jdk 1.5 mbeans with mx4j 14 March 2005 10:53:28

  Top users: 
  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:

Use jdk 1.5 mbeans with mx4j

Torsten Uhlmann 12 March 2005 20:25:47
 Hi all,

please forgive if this question is stupid or around here for the x time.
I didn't find an answer in the list.

Can I deploy the 1.5 monitoring functionality into mx4j or is this only
available through the jdk 1.5 jmx agent?

If yes, what are the names of those mbeans?

If no, can I use jdk1.5's jmx agent and tell it to start an rmiregistry
(that is the connection I'm using) programmatically, as in mx4j:

// Register and start the rmiregistry MBean, needed by JSR 160
RMIConnectorServer
ObjectName namingName = ObjectName.getInsta­nce("naming:type=rmi­registry");
mbeanServer.createM­Bean("mx4j.tools.nam­ing.NamingService", namingName,
null);
mbeanServer.invoke(­namingName, "start", null, null);

I'm using mx4j 3.01.

thanks for your help,
Torsten.

--

Torsten Uhlmann
AGYNAMIX(­R). Straight to the heart.

tel : +49 3721 271454
fax : +49 3721 271455
mobile : +49 177 5361680
eMail : contact@agynamix.co­m
www : http://www.agynamix­.com




-------------------­--------------------­----------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com­/?ad_id=6595&alloc_i­d=14396&op=click
Add comment
Simone Bordet 13 March 2005 20:42:27 permanent link ]
 Hi,
Can I deploy the 1.5 monitoring functionality into mx4j or is this only> available through the jdk 1.5 jmx agent?>
If yes, what are the names of those mbeans?

I'm not sure what you mean.
If you use J2SE 5 then you're not using MX4J (unless you put mx4j in the
bootclasspath), therefore you will use J2SE JMX monitor with J2SE JMX
implementation.
If you put MX4J in the classpath, then you will use MX4J JMX monitor with
MX4J JMX implementation.
If no, can I use jdk1.5's jmx agent and tell it to start an rmiregistry> (that is the connection I'm using) programmatically, as in mx4j:>
// Register and start the rmiregistry MBean, needed by JSR 160> RMIConnectorServer>­ ObjectName namingName = ObjectName.getInsta­nce("naming:type=rmi­registry");> mbeanServer.createM­Bean("mx4j.tools.nam­ing.NamingService", namingName,> null);> mbeanServer.invoke(­namingName, "start", null, null);>
I'm using mx4j 3.01.

Yes, this is possible.
NamingService is a portable MBean across JMX implementations, so just put
mx4j-tools.jar in the classpath of your J2SE 5 application, and everything
will work.

Simon



-------------------­--------------------­----------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com­/?ad_ide95&alloc_id3­96&op=click
Add comment
Torsten Uhlmann 13 March 2005 21:07:58 permanent link ]
 Thanks for your help!

Well JMX is a new target for me and I don't really have much insight in
the available mbeans.

I've built a Server application using Spring and a client application
using Eclipse RCP.
As a communication platform I'm using JMX with just a few simple MBeans
and Notification. And yes, I'm using j2se 1.5 on both sides with mx4j on
the server side. I didn't know mx4j provides MBeans that can monitor a
JVM the way the tiger integrated can. I just thought it might be a good
feature to provide a way to look at the server and see how it's doing
(and it makes testing for memory leaks etc. easier).

Again, thanks for your help!
Torsten.

simone.bordet@hp.co­m wrote:
Hi,>
Can I deploy the 1.5 monitoring functionality into mx4j or is this only>>available through the jdk 1.5 jmx agent?>>
If yes, what are the names of those mbeans?>>
I'm not sure what you mean.>If you use J2SE 5 then you're not using MX4J (unless you put mx4j in the>bootclasspath),­ therefore you will use J2SE JMX monitor with J2SE JMX>implementation.­>If you put MX4J in the classpath, then you will use MX4J JMX monitor with>MX4J JMX implementation.>
If no, can I use jdk1.5's jmx agent and tell it to start an rmiregistry>>(that is the connection I'm using) programmatically, as in mx4j:>>
// Register and start the rmiregistry MBean, needed by JSR 160>>RMIConnectorSe­rver>>ObjectName namingName = ObjectName.getInsta­nce("naming:type=rmi­registry");>>mbeanSe­rver.createMBean("mx­4j.tools.naming.Nami­ngService", namingName,>>null);­>>mbeanServer.invoke­(namingName, "start", null, null);>>
I'm using mx4j 3.01.>>
Yes, this is possible.>NamingSer­vice is a portable MBean across JMX implementations, so just put>mx4j-tools.jar in the classpath of your J2SE 5 application, and everything>will work.>
Simon>
------------------­--------------------­----------------->SF­ email is sponsored by - The IT Product Guide>Read honest & candid reviews on hundreds of IT Products from real users.>Discover which products truly live up to the hype. Start reading now.>http://ads.osd­n.com/?ad_ide95&allo­c_id396&op=click>___­____________________­____________________­____>Mx4j-user mailing list>Mx4j-user@list­s.sourceforge.net>ht­tps://lists.sourcefo­rge.net/lists/listin­fo/mx4j-user>



-------------------­--------------------­----------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com­/?ad_id=6595&alloc_i­d=14396&op=click
Add comment
Simone Bordet 13 March 2005 22:53:30 permanent link ]
 Hi,
Well JMX is a new target for me and I don't really have much > insight in the available mbeans.>
I've built a Server application using Spring and a client application > using Eclipse RCP.> As a communication platform I'm using JMX with just a few > simple MBeans and Notification.

Cool.
And yes, I'm using j2se 1.5 on both sides > with mx4j on the server side.

As I told, if you're using J2SE 5, then you're *not* using MX4J JMX
implementation.
But you can use all MX4J tools (bundled in mx4j-tools.jar) since all
tool MBeans are portable.
I didn't know mx4j provides MBeans that can > monitor a > JVM the way the tiger integrated can.

Ah, no.
I thought you were referring to javax.management.mo­nitor.* package,
which is JMX standard.
MX4J does not offer any MBean to monitor the JVM.
Those are only available in J2SE 5.

Simon
I just thought it might be a good > feature to provide a way to look at the server and see how it's doing > (and it makes testing for memory leaks etc. easier).>
Again, thanks for your help!> Torsten.>
simone.bordet@hp.co­m wrote:>
Hi,> >
Can I deploy the 1.5 monitoring functionality into mx4j or > is this only> >>available through the jdk 1.5 jmx agent?> >>
If yes, what are the names of those mbeans?> >>
I'm not sure what you mean.> >If you use J2SE 5 then you're not using MX4J (unless you put > mx4j in the> >bootclasspath), therefore you will use J2SE JMX monitor with J2SE JMX> >implementation.> >If you put MX4J in the classpath, then you will use MX4J JMX > monitor with> >MX4J JMX implementation.> >
If no, can I use jdk1.5's jmx agent and tell it to start an > rmiregistry> >>(that is the connection I'm using) programmatically, as in mx4j:> >>
// Register and start the rmiregistry MBean, needed by JSR 160> >>RMIConnectorServe­r> >>ObjectName namingName = > ObjectName.getInsta­nce("naming:type=rmi­registry");> >>mbeanServer.creat­eMBean("mx4j.tools.n­aming.NamingService"­, > namingName,> >>null);> >>mbeanServer.invok­e(namingName, "start", null, null);> >>
I'm using mx4j 3.01.> >>
Yes, this is possible.> >NamingService is a portable MBean across JMX > implementations, so just put> >mx4j-tools.jar in the classpath of your J2SE 5 application, > and everything> >will work.> >
Simon> >
------------------­--------------------­-----------------> >SF email is sponsored by - The IT Product Guide> >Read honest & candid reviews on hundreds of IT Products from > real users.> >Discover which products truly live up to the hype. Start reading now.> >http://ads.osdn.co­m/?ad_ide95&alloc_id­396&op=click> >__________________­____________________­_________> >Mx4j-user mailing list> >Mx4j-user@lists.so­urceforge.net> >https://lists.sour­ceforge.net/lists/li­stinfo/mx4j-user> >


-------------------­--------------------­----------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com­/?ad_ide95&alloc_id3­96&op=click
Add comment
Torsten Uhlmann 14 March 2005 10:53:28 permanent link ]
 Hi,

no, I use MX4J because it's in the classpath and I use the property
-Djavax.management.­builder.initial=mx4j­.server.MX4JMBeanSer­verBuilder

And I guess I have decided I'll stick with MX4J.

In addition I'm enabling the j2se JMX Agent through
-Dcom.sun.managemen­t.jmxremote
and be able to watch my server during development cycle. I don't think
the customers the product is targeted for
will use this feature. Maybe I find a way to manage those MXBeans
through MX4J and then monitor them through my
Eclipse RCP application.

As a side note, I'm really happy with the huge amount of solutions Java
has to offer!
Some years ago we built a C++ distributed application which could not
use CORBA and thus had to
manage everything through low level socket connections. Brrr...

bye,
Torsten.

Bordet, Simone wrote:
Hi, >
Well JMX is a new target for me and I don't really have much >>insight in the available mbeans.>>
I've built a Server application using Spring and a client application >>using Eclipse RCP.>>As a communication platform I'm using JMX with just a few >>simple MBeans and Notification. >>
Cool.>
And yes, I'm using j2se 1.5 on both sides >>with mx4j on the server side. >>
As I told, if you're using J2SE 5, then you're *not* using MX4J JMX>implementation.­>But you can use all MX4J tools (bundled in mx4j-tools.jar) since all>tool MBeans are portable.>
I didn't know mx4j provides MBeans that can >>monitor a >>JVM the way the tiger integrated can. >>
Ah, no.>I thought you were referring to javax.management.mo­nitor.* package,>which is JMX standard.>MX4J does not offer any MBean to monitor the JVM.>Those are only available in J2SE 5.>
Simon>
I just thought it might be a good >>feature to provide a way to look at the server and see how it's doing >>(and it makes testing for memory leaks etc. easier).>>
Again, thanks for your help!>>Torsten.>>
simone.bordet@hp.­com wrote:>>
Hi,>>>
Can I deploy the 1.5 monitoring functionality into mx4j or >>>>
is this only>>
available through the jdk 1.5 jmx agent?>>>>
If yes, what are the names of those mbeans?>>>>
I'm not sure what you mean.>>>If you use J2SE 5 then you're not using MX4J (unless you put >>>
mx4j in the>>
bootclasspath), therefore you will use J2SE JMX monitor with J2SE JMX>>>implementatio­n.>>>If you put MX4J in the classpath, then you will use MX4J JMX >>>
monitor with>>
MX4J JMX implementation.>>>
If no, can I use jdk1.5's jmx agent and tell it to start an >>>>
rmiregistry>>
(that is the connection I'm using) programmatically, as in mx4j:>>>>
// Register and start the rmiregistry MBean, needed by JSR 160>>>>RMIConnector­Server>>>>ObjectName­ namingName = >>>>
ObjectName.getIns­tance("naming:type=r­miregistry");>>
mbeanServer.cre­ateMBean("mx4j.tools­.naming.NamingServic­e", >>>>
namingName,>>
null);>>>>mbean­Server.invoke(naming­Name, "start", null, null);>>>>
I'm using mx4j 3.01.>>>>
Yes, this is possible.>>>NamingS­ervice is a portable MBean across JMX >>>
implementations, so just put>>
mx4j-tools.jar in the classpath of your J2SE 5 application, >>>
and everything>>
will work.>>>
Simon>>>
----------------­--------------------­------------------->­>>SF email is sponsored by - The IT Product Guide>>>Read honest & candid reviews on hundreds of IT Products from >>>
real users.>>
Discover which products truly live up to the hype. Start reading now.>>>http://ads.o­sdn.com/?ad_ide95&al­loc_id396&op=click>>­>___________________­____________________­________>>>Mx4j-user­ mailing list>>>Mx4j-user@li­sts.sourceforge.net>­>>https://lists.sour­ceforge.net/lists/li­stinfo/mx4j-user>>>
------------------­--------------------­----------------->SF­ email is sponsored by - The IT Product Guide>Read honest & candid reviews on hundreds of IT Products from real users.>Discover which products truly live up to the hype. Start reading now.>http://ads.osd­n.com/?ad_ide95&allo­c_id396&op=click>___­____________________­____________________­____>Mx4j-user mailing list>Mx4j-user@list­s.sourceforge.net>ht­tps://lists.sourcefo­rge.net/lists/listin­fo/mx4j-user>



-------------------­--------------------­----------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com­/?ad_id=6595&alloc_i­d=14396&op=click
Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


QAIX > Java Programming > Use jdk 1.5 mbeans with mx4j 14 March 2005 10:53:28

see also:
Unable to Generate Jboss DD Elements
<strutsconfigxml/> and…
we won!
pass tests:
see also:

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .