This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes RMI inside socket Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI inside socket " Watch "RMI inside socket " New topic
Author

RMI inside socket

rosy Jovita
Ranch Hand

Joined: Jan 05, 2010
Posts: 45
Hi all,

i was about to create a client server Automated teller machine (ATM) implemented both
using socket and rmi. Socket is use to connect the client and server, while RMI is use to implement the method such
as withdrawal, check balance and so on.
server must be able to serve multiple client at one time (multithreading).
Anyone know how to implement RMi in socket? Please help me, i have crack my head for this but found no solution.
thanks
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

Why use both? RMI is built on top of sockets so you can skip the entire manual socket part. RMI will be all you need, and it will be multi-threaded automatically (which requires you to make sure the server is thread safe).


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: RMI inside socket
 
Similar Threads
Implementaion of the interface provided by Sun to handle local and remote connections
RMI vs Sockets
convert ing socket to RMI question
Using ssh pub/pri key implement port22
client, server executables in windows