EJB uses RMI-IIOP. So how is it better?
EJB containers handle Transactions, Database Access, Security, Concurrency, and others for you.
If you had just RMI, you would have to code all that stuff yourselg.
It also has standards and
patterns that can make development smoother or easier, depending on whether you are standing on you head when you look at your code, or if you are just hanging off the ceiling by your feet.
There are more advantages, but those came off the top of my head, you see I am hanging from the ceiling.
Mark
Mark