Originally posted by Sudha:
What is the difference between a local interface and local home interface in EJB? Please help me to find the exact demarcation in the usage of these two interfaces.
Local Interface:
When both the session bean and entity bean resides in the same container and session bean make a call to the entity bean, ejb don't reqd to use the remote interface and remote home interface instead they can use local interface and local home interface. It improves the performance and reduces the network problem associated with the remote call.
It is similar to component interface i.e. declares the contracts.
Local Home interface:
Will define the bean life cycle methods.