GeeCON Prague 2014*
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
Author

Session bean accessing entity

Hari babu
Ranch Hand

Joined: Jun 25, 2001
Posts: 208
Hi,
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
Harish
jon boydell
Greenhorn

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.
 
GeeCON Prague 2014
 
subject: Session bean accessing entity