?
Solved

Wht not to use JAVA-RMI over the Internet ?

Posted on 2004-10-06
6
Medium Priority
?
416 Views
Last Modified: 2012-06-27
I have been wondering about this:

JAVA RMI is a very good techonology, created for Distributed Systems, but why some people out there say that it is not advisable to use it over the Internet ?

How about firewalls, do they all allo you to use RMI ?

Why shouldn't I use RMI in my Distributed appl. over the Internet ? or perhaps, why should I use it ?
0
Comment
Question by:probine
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 11

Expert Comment

by:cjjclifford
ID: 12236738
personally I'd say the insecure nature would be the main reason, as well as various firewall issues... you could look at combining SSL and RMI, or even Tunnelled SSL and RMI might work... I've never had to work on clients outside corporate LAN (with RMI that is...)

Cheers,
C.
0
 
LVL 7

Accepted Solution

by:
tomboshell earned 80 total points
ID: 12237406
Security, overhead, possible overkill.  Most people find that they can simply implement a system where the different components simply send short messages (often in xml) rather than the more complicated rmi.  


but anyways
http://www.javacoding.net/articles/technical/rmi-firewall.html
0
 
LVL 7

Expert Comment

by:bvanderveen
ID: 12238253
You can set a security manager for RMI to solve most security issues (limiting to certain clients, JVM restrictions, signed code only, directory restrictions, etc.).  But, RMI is usually overkill, and using some messaging is often preferable to having an application execute remote code directly.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 11

Expert Comment

by:cjjclifford
ID: 12238353
the lack of security I was describing was mainly in the plain text nature...
but, yes, the messaging mechanism does sound like a better approach - RMI will presumably keep sockets, etc, for the lifetime of the connect, etc.
0
 

Author Comment

by:probine
ID: 12246448
Should I use then TCP/IP ?
I want to make a simple client - server chat appl.

Suggestios ?
0
 
LVL 11

Expert Comment

by:cjjclifford
ID: 12246483
probably the easiest would be to use JSP webpage, and use a <form> to POST the chat lines - refreshing the client side periodically - this way means that no client specific code is required, just a web-browser...
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question