Anissa,
I'm working on that--it depends on whether we want to "wrap" the
MBeanServer so it can be automated.
For now, do this if you are in-process (available as of yesterday):
import org.glassfish.admin.amx.loader.AMXStartupService;
import org.glassfish.admin.amx.loader.AMXStartupServiceMBean;
final AMXStartupServiceMBean starter =
AMXStartupService.getAMXStartupServiceMBean();
starter.startAMX();
final DomainRoot domainRoot =
ProxyFactory.getInstance(conn).getDomainRoot();
If you are operating the GUI remotely (out of process), you can use
the JMXMP connector (as of yesterday) to do the same thing using the
ObjectName "amx-support:name=starter", invoking the "startAMX" method
(no arguments).
JMXServiceURL: service:jmx:jmxmp://localhost:8888
Lloyd
On Mar 18, 2008, at 11:32 AM, Anissa Lam wrote:
> Hi Lloyd,
> Is there plan that AMX be loaded when it is first accessed in TP2
> so that GUI doesn't need to worry about loading AMX ?
> Or i should get this part working ?
> Currently, i just make sure AMX is loaded before accessing GUI by
> going to http://localhost:8080/__asadmin/amx
>
> thanks
> Anissa.
---
Lloyd L Chambers
lloyd.chambers_at_sun.com
Sun Microsystems, Inc