Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejb and rmi

 
sumit malik
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi to all,
can anybody tell me the basic difference between RMI and EJB ..and why EJB is preferred...
 
Marcos Maia
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic