Most J2EE applications have EJB components that are called from other EJB components and the Web tier (servlets and JSPs). You can use the following techniques to optimize these calls:
Local interfaces, introduced in the EJB 2.0 specification, improve performance by eliminating the marshalling of parameter data; in other words, parameters in component calls are passed as local data references rather than copying the object.
The EAServer Lightweight container offers further performance gain over local interfaces alone, and can be used with EJB 1.1 components and EJB 2.0 components that lack a local interface.
You can also enable Pass-by-reference semantics in EAServer to achieve the same benefits as local interfaces when using EJB 1.1 components.
Copyright © 2005. Sybase Inc. All rights reserved. |