The EJB 2.0 architecture introduces local interfaces for calls to an EJB component from within the same Java virtual machine. In EAServer, you can use local interfaces for intercomponent calls, and for component invocations made from servlets hosted in the same server as the component.
Using local interfaces can improve performance, but in coding you must be aware that:
Parameters are passed by reference rather than by copy, so object instances passed through a local invocation can be shared by the client and component. If the component modifies the object, the client sees the changes.
Local interfaces are not location-transparent. The called component must be hosted in the same server process as the calling component.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |