Question: I've seen 2 types of RMI URLs(may be this term is incorrect) as `http://host:port/rmi` and `rmi://host:port/repository_name`. But I've no idea what the difference between those two are. can someone please explain? 

Thanks.

Answer: 
> 
> I've seen 2 types of RMI URLs(may be this term is incorrect) as `http://host:port/rmi`
> 
> 
> 

I've been using RMI for fifteen years and I've never seen anything like that described as an 'RMI URL'. Where did you get that from?

> 
> `rmi://host:port/repository_name`
> 
> 
> 

Now *that* is an RMI URL.
The format of an RMI URL is one of the following:

```
   rmi://[host][:port][/[object]]

   rmi:[/][object]

```

If the object name is absent, then the URL names the registry at the given host and port. Otherwise, it names the remote object registered at that registry under the name provided.
If the host is omitted, the local host is assumed. If the port is omitted, the default registry port 1099 is assumed.

[ref this](http://docs.oracle.com/javase/7/docs/technotes/guides/jndi/jndi-rmi.html)