• Post Reply Bookmark Topic Watch Topic
  • New Topic

why rmi technology is used in ejb

 
rehans oberoi
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
why rmi technology is used in ejb , can anybody tell me the
cases , when this is possible without rmi technology
 
Greg Charles
Sheriff
Posts: 3012
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, RMI is the Java technology for client/servlet applications. Why wouldn't it be used for EJBs?
 
Shanmugam Karthikeyan
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I think in order attain location transparency EJB architecture uses RMI technology.To make it simple if any RMI application's lifecyle is controlled by a container, it can be simply named as EJB application.
 
AmitKumar Jain
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm back to this forum now... I wanted to concentrate on my job.. so I was out of touch since 6 months... now Iv decided to target SCBCD... when I browse this forum, I get back my confidence...

Anyways..

RMI is obviously used coz EJB is based on Distributed Architecture...

In earlier version, even if the client and EJB were deployed on the same server, RMI was used which affected performance.
With EJB 2.1, Sun introduced concept of Local Remote and Local Home interfaces. When you configure EJB application using these, then RMI is not used.

For location transparency, JNDI is used.. not RMI...
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!