File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Distributed Java and the fly likes a few questions about RMI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "a few questions about RMI" Watch "a few questions about RMI" New topic

a few questions about RMI

Sam Doder
Ranch Hand

Joined: Feb 06, 2008
Posts: 204
I have been doing RMI programs using notepad.
They work fine but I am wondering how you can do them thru an IDE like eclipse.
Their is no RMI project to select when selecting a new project type?

The only thing I can think of is using some type of ant script or external process to automate running the rmic complier after compiling the classes and executing the rmiregistry command from the IDE.

But I am interested if their is another way I am not aware of thru eclipse. Perhaps some type of installable plugin for rmi projects or something I am not aware of.

Question 2

In java we have Corba , RMI , EJB , JMS (really just EJB but message beans) , ...

Corba I would only use over RMI if their was different languages other then java involved. (but if their is another reason I am missing please let me know)
Rmi or EJB don't really know why one or the other I favor RMI just because it usually is the easiest to implement in most cases. (Curious though why one or the other)

Question 3

using any of these distributive computing interfaces
Is their away to encrypt or at least have some security when sending a remote method (using sometype of SSLsocket instead of plaintext ) since I would think somebody looking with wireshark and nmap would beable to spoof or call a remote method if crafted the correct packet ....

Question 4
How do you make it so corba , rmi , ejb , jms ,... etc use encrypted packets thru the network instead of plaintext ones , basically how do you implement/code for question 3 in your rmi , corba ,..etc applications.

Thanks for any help
Ekta Matani

Joined: May 17, 2005
Posts: 14

By adding rmi plugin to your eclipse, you can execute rmi programs from within eclipse.

You can refer below link to get rmi plugin :

I think its a trial version[not sure] , you can download plugin as per eclipse version you are using.
You can read instructions and Demos for plugin installation details.

Sam Doder
Ranch Hand

Joined: Feb 06, 2008
Posts: 204
Thanks for the link awesome

I see their is a tool called RMISpy to , so I am assuming RMI uses unencrypted protocols such as http ,..etc.

Is their any way to code your method calls to use ssl or some encrypted protocol such as https instead of http ?

Question 2
Why do we have both ejb and rmi? Meaning when would you use one over the other and for what reason.
Seems to me both do the same exact thing.
I agree. Here's the link:
subject: a few questions about RMI
jQuery in Action, 3rd edition