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
- Fast
- Secure
- Convenience(easy to use)
- 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".
精彩评论