5
I am new in java and would like a help to understand better RMI, Socket and the JPA, and better understand their utilities and when applied, because I don’t see much to choose between them. I did a lot of research, but I found a lot of technical stuff that didn’t help me much.
John, RMI, Socket and JPA are completely different things. It’s a little strange that you want to "choose" between these technologies. Are you just wanting to learn or do you have some real problem you’re facing? How did you come to the conclusion that you should choose one of these technologies? Perhaps it would be better to change your question and describe the problem better, otherwise it would be too broad to address all possible aspects of each of these technologies.
– utluiz
Sockets basically transmit low-level data between remote programs. RMI (Remote Method Invocation) is a little higher level and allows you to run a method of a remote program, waiting for the return as if it were a local method call. JPA (Java Persistence API) is basically an object-relational mapping API to access database without writing SQL. Well, I’ve summarized everything, but I doubt a survey would give you those definitions. Therefore, it is essential that you be clearer in telling exactly what your problem is. Hug!
– utluiz
This part had even done the research, and yes it is for learning, I want to see if I can create a client/server system on the web where the server(web) would send the commands to a program (client) that would run, at first I saw that the alternative would be the RMI but I did not find so much content of the theme for beginners.
– João
RMI is not for client/server on the web. I recommend studying some Restful API like JAX-RS or Spring MVC. If you really want to send a server notification to the client (this is not always really necessary), study how to use Websockets. It is possible to do this with Spring as well.
– utluiz
@utluiz Thanks for the light, I will study yes!
– João