This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Distributed Technologies

 
Rajesh Boddepalli
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why we go for EJB eventhough RMI also Distributed Technologies.
What is the main diffrence between RMI and EJB?
Rajesh
boddepalli@yahoo.com
 
ib idris
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
RMI and EJB are different technologies. RMI lets you use objects on remote server. EJB lets you work with beans. RMI has the disadvantage of slow response because of network overhead.
http://galileo.spaceports.com/~ibidris/
 
R K Singh
Ranch Hand
Posts: 5382
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB is part of J2EE technology.
EJB makes use of RMI-IIOP protocol for network calls.
EJB provides you some basic functinality almost mandatory for all enterprise applicatiosn like transaction, security, concurrency, DB connection pooling, messaging, location transparency.
On the other hand RMI is first step from Java technology for remote procedure calls. It helps you to call remote methods i.e. methods of objects residing on other server. But it does not provide basic functionalities like above mentioned needed for enterprise apps.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic