GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  EJB
Go To First  |  Previous Question  |  Next Question 
 EJB  |  Question 19 of 175    Print  
What is local interface. How values will be passed

Answered by Jey on 2005-05-08 12:33:35:

If Client and EJB classes are in the same machine ( Same JVM) then we can use Local linterface instead of Remote interface. Since Client and EJB are in same JVM, values are passed by referance.




  
Total Answers and Comments: 5 Last Update: November 17, 2005   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
May 08, 2005 12:33:35   #1  
Jey        

RE: What is local interface. How values will be passed
If Client and EJB classes are in the same machine ( Same JVM) then we can use Local linterface instead of Remote interface. Since Client and EJB are in same JVM, values are passed by referance.
 
Is this answer useful? Yes | No
July 25, 2005 02:50:43   #2  
Ritesh        

RE: What is local interface. How values will be passed
local interface s are used when our Client and the middle tie resist in the same JVM. there you dont need any remote interface . you can used a local interface, but that is added in the EJB 2.0 . prenvious version doesn't have this features.. what ever values you are passing are to be passes by referance.
 
Is this answer useful? Yes | No
August 28, 2005 13:46:21   #3  
sanjay        

RE: What is local interface. How values will be passed
EJB: 
If we use local interfece then performance is upgraded Or degraded?

 
Is this answer useful? Yes | No
September 19, 2005 23:20:50   #4  
Sowmy        

RE: What is local interface. How values will be passed...

Performance is upgraded when using a local interface because there are no RMI/IIOP network calls hence reducing the overhead.


 
Is this answer useful? Yes | No
November 17, 2005 05:06:22   #5  
kasturi        

RE: What is local interface. How values will be passed...
Local interface is when the client and the ejb are colocated in a same jvm.Here the client is another EJB.In case of Local interface there is no need of throwing RemoteException rather it throws EJB Exception which is a subclass of Runtime Exception.so u may not catch tis exception.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape