LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-23-2004, 08:30 PM   #1
csfalcon
Member
 
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 31
jmx rmi connection


Hi,

I am trying to create a JMX Connector Server using the RMI service with the code below

Code:
JMXServiceURL url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://localhost:9999/server");
JMXConnectorServer cs = JMXConnectorServerFactory.newJMXConnectorServer(url, null, mbs);
cs.start();
I do a
Code:
rmiregistry 9999&
before I run the program
it works on Windows runing Java 1.5, but on my Linux machine with Java 1.5 I get this error

Code:
Error: java.io.IOException: Cannot bind to URL [rmi://localhost:3450/server]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: 
	java.net.ConnectException: Connection refused]
I am thinking it's because of my linux setup, any ideas what?
 
Old 06-24-2004, 01:20 AM   #2
moeminhtun
Member
 
Registered: Dec 2002
Location: Singapore
Distribution: Fedora Core 6
Posts: 647

Rep: Reputation: 30
I think RMI registry should run without 9999 just like,

rmiregistry &

Try it out and see what happen.
 
Old 06-24-2004, 09:40 AM   #3
csfalcon
Member
 
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Original Poster
Rep: Reputation: 31
thanks for the reply,

I gave it a try, but still getting the same exception
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RMI Connection fail sumeetmaithil Linux - Software 0 09-21-2005 01:46 AM
RMI on Linux sumeetmaithil Linux - Software 0 09-20-2005 06:31 AM
Java RMI Connection Problem mtest Programming 7 09-01-2005 02:43 PM
[RMI JOnAS] RMI or IPTABLES Configuration fred2210 Programming 2 04-14-2005 12:24 AM
About Java RMI poeta_boy Programming 4 01-27-2004 02:18 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration