Re: Can u explain what is local Interface and their features and where can i use this Interface?
Tuesday, April 13, 2004 01:07 AM
Well you can use Local interface only in tthe case If you have clients to the same JVM as EJB. Take the scenario when you need to call ejbs from other ejbs in the same JVM i.e.
Session Bean might need to call the entity beans. Talking about session facade pattern. So in that case you can use
local interface instead of remote interface.
Local interface provides better performance
1. Calls are Local not Remote
2. Parameters are passed by reference not by value