开发者

which way is better in java? [closed]

开发者 https://www.devze.com 2022-12-19 01:26 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 2 years ago.

Improve this question 开发者_开发知识库

I want write a Special Messenger(should be able to some transaction) with RMI(Remote Method Invocation) or Network(Socket) , It should be

  1. Fast
  2. Secure
  3. Convenience(easy to use)
  4. and of course beautiful :)

It's for a big LAN and it should be able to handle our transaction in Oracle DB !!!

which way is better in java? RMI or Network ???

Thanks guys :)


RMI Programming Services Reach out and touch someone. Object-oriented distributed computing is all about communication between objects that live in different virtual machines. Remote Method Invocation (RMI) makes sending a message to an object in Timbuktu as easy as invoking a method on a local object. RMI is 100% Pure Java TM. And best of all, it's built into the core Java libraries (version 1.1 and higher). This module introduces RMI and covers its strengths and weaknesses as a platform for distributed computing. Reference RMI 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


Are you asking whether RMI or low-level socket programming is better? I'd say unless you had a real good reason, use something more high-level for the networking. A drawback with RMI would be that it is tied to Java. If that is a problem, you can look at other, more cross-platform remoting protocols.

Either way, the networking issue seems to be completely unrelated to "handling transactions with an Oracle DB".

0

精彩评论

暂无评论...
验证码 换一张
取 消