An important change is now in place for AMX: AMX loads only upon
request (the amx-impl module does not load until it is requested).
Formerly, the amx-impl module) was partially loaded and MBeans were
later loaded when requested. This cost startup time, demanded
"wrapping" the MBeanServer and those things were quite undesirable.
IMPACT
The impact is expected to be low, since most (maybe all) programmatic
clients are using AppserverConnectionSource.
- Clients using AppserverConnectionSource: no change; when a
connection is made via AppserverConnectionSource, AMX is booted
automatically.
- Java clients not using AppserverConnectionSource and/or in-process
clients must explicitly load AMX as follows:
MBeanServer[Connection] conn = ...
ObjectName domainRoot =
com.sun.appserv.management.client.AMXBooter.bootAMX(conn);
Or if amx-api is not being used, an ObjectName can be used:
MBeanServer[Connection] conn = ...
ObjectName domainRoot = conn.invoke( new ObjectName("amx-
support:name=booter"), "bootAMX", null, null);
- JConsole users will need to invoke bootAMX() on "amx-
support:name=booter".
Lloyd
---
Lloyd L Chambers
lloyd.chambers_at_sun.com
Sun Microsystems, Inc