This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Confused about how to test RMI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Confused about how to test RMI" Watch "Confused about how to test RMI" New topic
Author

Confused about how to test RMI

khanh ng
Greenhorn

Joined: Mar 26, 2001
Posts: 5
I passed my SCJP with a score of 93%. Now I am just trying to build a small chat client and server application to learn the concepts of RMI for the SCJD. But how do I test RMI on a local machine when I am using dial-up for connection? I am not sure what I am suppose to specify as URL for usage in the java.rmi.Naming.lookup within the client to get a reference to the server. Any suggestions will be greatly appreciated.
Matt DeLacey
Ranch Hand

Joined: Oct 12, 2000
Posts: 318
I downloaded a second sdk 2 and ran the server in one vm and the client in the other and it seems to work fine.

With Respect,
Matt
 
Consider Paul's rocket mass heater.
 
subject: Confused about how to test RMI
 
Similar Threads
Problem with RMI
RMI and resource share
How does server call clinet methods?
Servlet as an rmi client
JUnit testing RMI with Mocks...