File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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.
I agree. Here's the link:
subject: Session bean accessing entity
It's not a secret anymore!