• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with JMX and Netbeans Tutorial (Outdated or broken)

 
Preston Thornton
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Pie
Posts: 21491
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for deleting the code, but that is just too much code. The javascript was choking on it.

Henry

 
Preston Thornton
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No worries . . .
same problem at the JMX Forum.
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Pie
Posts: 21491
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11165
14
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic