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.

Showing Answers 1 - 5 of 5 Answers

Jey

  • May 8th, 2005
 

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.

  Was this answer useful?  Yes

sanjay

  • Aug 28th, 2005
 

EJB: 
If we use local interfece then performance is upgraded Or degraded?

  Was this answer useful?  Yes

Ritesh

  • Jul 25th, 2005
 

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.

  Was this answer useful?  Yes

Sowmy

  • Sep 19th, 2005
 

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

  Was this answer useful?  Yes

kasturi

  • Nov 17th, 2005
 

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.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions