Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

please post RMI Code to invoce server in one syst and client resides in another system in netbeans

 
uday babu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please anybody post RMI source Code to invoce distributed server method which resides in one system from client code which resides in another system by using netbeans IDE
 
Ahsan Bagwan
Ranch Hand
Posts: 254
1
Java MySQL Database Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are likely to get help here when you also include what you have actually done. Read NotACodeMill
 
uday babu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually iam new to RMI and i follow web tutorials they all are perform in single machine to get result i mean they are done all things like interface implementation and server implementation and client implementation in single machine but i want to make it split client and server work in both different systems in netbeans
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It makes almost no difference whether the two code bases run on the same machine or not. Somewhere in the code (or maybe the configuration) will be one line which tells the client where to find the server; this is all you have to change.

And I would like to contradict one thing you said: No, you don't want to make it work in two systems in NetBeans. That's because NetBeans is a development tool. In real life you will want the applications to run on their own. NetBeans won't be there.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic