Which way is better in java?

I want to write a Special messenger (should be able to perform some transaction) using RMI (Remote Method Invocation) or Network (Socket), it should be

  • Fast
  • Secure
  • Convenience (easy to use)
  • and of course beautiful :)

It is for a large local area network and should be able to process transactions in Oracle DB !!!

which way is better in java? RMI or network.

Thanks guys:)

+4
source share
2 answers

RMI programming services. Touch someone. Object-oriented distributed computing deals with communication between objects that live on different virtual machines. Remote Method Invocation (RMI) makes sending a message to an object in Timbuktu as easy as calling a method on a local object. RMI is 100% pure JavaTM. And, most importantly, it is built into the main Java libraries (version 1.1 and higher). This module introduces RMI and covers its strengths and weaknesses as a platform for distributed computing. RMI help programming:
http://java.sun.com/javase/technologies/core/basic/rmi/index.jsp
http://www.eve-it.com/solutions/rmi.html
Socket Programming:
http://java.sun.com/docs/books/tutorial/networking/sockets/index.html

+1
source

Are you asking whether RMI or low-level socket programming is better? I would say if you don’t have a good reason, use something higher level for networking. The disadvantage of RMI would be that it is tied to Java. If this is a problem, you can look at other, more cross-platform remote access protocols.

In any case, the network issue seems to be completely unrelated to "transaction processing using Oracle DB."

+1
source

Source: https://habr.com/ru/post/1300416/


All Articles