Re: MBeanServer & getDomains()

"Simone Bordet" <[email protected]>
Newsgroups gmane.comp.java.mx4j.user
Message-ID <[email protected]>
Hi,

> I've checked the version, and it seems that 5.1 it using JMX 1.1.
> http://www-128.ibm.com/developerworks/websphere/techjournal/0502_cheng/0502_cheng.html
> (first line under JMX interoperability)
>
> I don't seem to find a JMX 1.1. API (I've looked alot though) so I don't
> know if getDomains() is included in that version.

No, I checked and it was added in JMX 1.2.

> Even though it is version 1.1 I too believe that WS uses the JMX 1.1.
> classes instead of the one provided in my ear.
>
> There is however an option to set the order in wich to load the classes
> (PARENT_FIRST vs PARENT_LAST) but when setting this to PARENT_LAST, WS
> crashes on startup..

:)

> But as I am student, I'm also certainly not an expert, and the whole
> behavior is verry confusing to me :s

One big hack you can do is to find the jmx 1.1 jar in WS, and replace
it with a jmx 1.2, provided you rename the jmx 1.2 with the same name
of the 1.1, making the server think it's using 1.1 while instead is
using 1.2.
Of course this suggestion is only for your experiments, cause a) I
have no idea if it works, b) it will certainly break the support (if
any) for WS, c) it may cause WS to not work, d) surely it's not
something I would recommend if not for experiments and e) I do not
have any responsibility this causes your hard-disk to be erased :)

You can try it just for curiosity.

I anyway suggest you use another app server if you can, one that is
up-to-date with the JMX API.

Simon
-- 
http://bordet.blogspot.com

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.