Solved

Wht not to use JAVA-RMI over the Internet ?

Posted on 2004-10-06
6
415 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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

690 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