This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes ejb and rmi Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "ejb and rmi" Watch "ejb and rmi" New topic
Author

ejb and rmi

sumit malik
Greenhorn

Joined: Oct 31, 2001
Posts: 21
hi to all,
can anybody tell me the basic difference between RMI and EJB ..and why EJB is preferred...
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
Hi,
Java RMI is a protocol used to communicate method invocations over a network and does not provide services(you have to hard code it) like declarative transaction control, security, scalability, load balancing, fail over , etc.
EJB is a component specification that uses RMI to communicate method invocations over a network and also provides services(container implementation) to handle transactions, security, etc.
 
GeeCON Prague 2014
 
subject: ejb and rmi