dcsimg
About EJB Architecture
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   vijay_krishna
Posted On:   Friday, June 17, 2005 03:28 AM

Why the EJB specification provided the two interfaces one is home interface and another is remote interface.why not they made it as or club it as single interface to achieve the functionality for accessing the enterprise bean.Please clarity this

Re: About EJB Architecture

Posted By:   Puneet_Monga  
Posted On:   Wednesday, June 29, 2005 06:12 AM

Remote interface is required when u know that ur ejb client and ejb object are residing on different computers. For example your web server and j2ee server are running on different machines.

Local interface is required when u know that ur ejb client and ejb object are residing on same computer/machine. This will reduce the overhead. Of course u can do away with remote interface but remote call always includes overhead when compared to local interface. local interface is just to decrease the overheads in case if you are sure that ejb client and ejb object are of same machine.
About | Sitemap | Contact