users@grizzly.java.net

Re: How to Enable JMX

From: Ryan Lubke <ryan.lubke_at_oracle.com>
Date: Mon, 04 Apr 2011 09:12:03 -0700

For 2.0, JMX works a bit differently.

See [1] for the basics.

As far as JMX ports, etc, please see [2].

[1] http://blogs.sun.com/rlubke/entry/grizzly_2_0_now_has
[2] http://download.oracle.com/javase/1.6.0/docs/guide/management/agent.html

On 4/4/11 8:49 AM, gagansnt wrote:
> I would like to enable JMX on my Grizzly Webserver. How can I do it ?
> I found following information on some other threads on this forum - But I
> can not find the Management class. Can somebody please point me where it is
> present(under which package) and How can I configure the JMX port or what is
> the default port ?
>
> server.enableJMX(new Management() {
>
> public void registerComponent(Object bean, ObjectName oname, String
> type)
> throws Exception {
> Registry.getRegistry().registerComponent(bean, oname, type);
> }
>
> public void unregisterComponent(ObjectName oname) throws Exception {
> Registry.getRegistry().unregisterComponent(oname);
> }
> });
>
> --
> View this message in context: http://grizzly.1045725.n5.nabble.com/How-to-Enable-JMX-tp4282104p4282104.html
> Sent from the Grizzly - Users mailing list archive at Nabble.com.