Solved

Wht not to use JAVA-RMI over the Internet ?

Posted on 2004-10-06
6
413 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 20 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
Technology Partners: 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
xampp tool 12 59
servlet web applications   metadata-complete="true" or false 3 195
jboss wildfly 10.1 10 429
Java syntax, or is it Selenium 6 42
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

733 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