• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why do we need Entity Bean Local Component Interface ?  RSS feed

 
param arora
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi People.

Can any one help me regarding the following issue :

Its never advisable to acess the entity beans remotely. the best performance which we can get it to use
Entity beans locally and provide a remote session bean to acess the local entity bean

Or use the remote session bean to acess the co- located Entity bean.

then why do we have the remote home and compoenet interface for an Entity bean when its never used .


Cheers
Param
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
then why do we have the remote home and compoenet interface for an Entity bean when its never used .


Local interfaces were introduced from EJB 2.0. Earlier versions had just the remote interfaces. Remote interfaces are useful when Entiy needed to be accessed from another JVM. Usually you will find entity and session colocated, so remote are not used. This resulted in introduction of local interfaces in EJB 2.0.

Hope this helps.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!