Meaningless Drivel is fun!
The moose likes EJB and other Java EE Technologies and the fly likes Session bean accessing entity Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Session bean accessing entity" Watch "Session bean accessing entity" New topic

Session bean accessing entity

Hari babu
Ranch Hand

Joined: Jun 25, 2001
Posts: 208
Why a session bean accessing an entity bean is a local call? In the session bean we have to do a JNDI lookup to access an entity bean and call the entity beans remote methods.

Thanks in advance
jon boydell

Joined: Jul 04, 2001
Posts: 15
Because it isn't a local call. It's a remote one. EJB1.1 has no provision for accessing EJBs in the same container in a local manner. EJB2.0 does. You can treat an EJB in the same container as a local call providing your container supports EJB2.0.
It is sorta covered in the JavaRanch Style Guide.
subject: Session bean accessing entity
It's not a secret anymore!