Can we fire JCONSOLE from an applet with out crashing the application

Hi,

I am trying to pop up a jconsole on clicking a process name in the browser.

For this i used applets. Based on the process name clicked i decide the jmxUrl to which the jconsole has to connect to.

I was able to do this using a signed jconsole.jar and then by invoking the main method of JConsole.

Now the problem is that when i close the jconsole the whole browser application gets closed/crashed. How can we avoid this.

Is it possible to extend from JConsole?

Thanks In advance.

mir13

Message was edited by:

mir13

[579 byte] By [mir13a] at [2007-10-3 9:26:14]
# 1

Hi,

JConsole is a tool in the JDK that was designed to run as a standalone Swing application to be run through the <jdk>/bin/jconsole binary file.

JConsole runs in a JFrame with the JFrame.EXIT_ON_CLOSE set as the default close operation and thus cannot be run as an applet as such without making the browser exit when you exit JConsole.

Anyway, have a look at the JConsole source code at http://jdk6.dev.java.net/.

I haven磘 entirely assessed how difficult it would be to make it run as an applet but I hope it isn磘 too much work.

Regards,

Luis-Miguel Alventosa

JMX Java SE development team

Sun Microsystems, Inc.

lmalventa at 2007-7-15 4:40:27 > top of Java-index,Core,Monitoring & Management...
# 2
Hello,I am trying to do exactly what you did. Can you share some information what you need to do get jconsole run as an applet in a browser?Thank You,-satya
sghattua at 2007-7-15 4:40:27 > top of Java-index,Core,Monitoring & Management...