*
The moose likes Beginning Java and the fly likes Help with JMX and Netbeans Tutorial (Outdated or broken) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Help with JMX and Netbeans Tutorial (Outdated or broken)" Watch "Help with JMX and Netbeans Tutorial (Outdated or broken)" New topic
Author

Help with JMX and Netbeans Tutorial (Outdated or broken)

Preston Thornton
Ranch Hand

Joined: Jun 24, 2008
Posts: 80
I didn't see a JMX Forum out here, so I am hope for help here.

Good afternoon:

I am working on a tutorial:

Developing a Java Management Extensions (JMX) Manager and Connecting to a Remote JMX Agent Using NetBeans IDE 6.0

Exercise 5: Running the Manager

http://www.netbeans.org/kb/60/java/jmx-manager-tutorial.html#Exercise_1

Where,
The given code was as follows:

***code deleted***

I am receiving the following error, where I understand that the connection was refused. I used the default port of 1099 as in the tutorial. Has anyone got this to work
under Netbeans 6.7.1?


Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18545
    
  40

Sorry for deleting the code, but that is just too much code. The javascript was choking on it.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Preston Thornton
Ranch Hand

Joined: Jun 24, 2008
Posts: 80
No worries . . .
same problem at the JMX Forum.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Presumably at this other forum they will already have told you that
Connection refused: connect

simply means that you tried to connect to a server which is not running? Or that you specified the wrong port, or that there is a firewall blocking communication?
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18545
    
  40

I am receiving the following error, where I understand that the connection was refused. I used the default port of 1099 as in the tutorial. Has anyone got this to work under Netbeans 6.7.1?


Well, netbeans is running the client, but... what is the server? Most application servers don't, by default, run the RMI connector, since it expects you to get to the MBean server via JNDI. And as for the JVM itself, that too, isn't running by default, as it is expected that you go through the ManagementFactory.

So... you need to confirm that you are running the RMI connector on the server, to be able to use it from the client.

Henry

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10172
    
    8

Preston Thornton wrote:No worries . . .
same problem at the JMX Forum.


Which forum is that?
You might want to read http://faq.javaranch.com/java/BeForthrightWhenCrossPostingToOtherSites


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
 
subject: Help with JMX and Netbeans Tutorial (Outdated or broken)
 
Similar Threads
RMI problem
I cannot use jmx. please help!
Unable to start Glassfish v2.1 without internet connection
JBoss 6 Shutdown - Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableExce
EJB romte call Exception,"Connection refused to host: win2003..."