This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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.
subject: Session bean accessing entity
Similar Threads
To Bill
Remote v Local
Entity v/s Session
using session facade pattern to call entity bean
on EJB Topic