If your components make many intercomponent calls, you can use one of the following techniques to improve performance:
For EJB components, use local interfaces, the EAServer lightweight container, or call-by-reference. See “Optimizing in-server EJB calls” for more information.
For components of other types, use pseudocomponents. Since pseudocomponents are executed locally, in the same process, they do not incur the network overhead of client/server communication. When used in EAServer, pseudocomponents avoid the small thread- and context-management overhead incurred when the EAServer component dispatcher executes intercomponent calls. However, pseudocomponents are not suitable for applications that require the transaction control, security constraints, and other services provided by the EAServer component dispatcher. For more information, see Chapter 34, “Creating and Using EAServer Pseudocomponents,” in the EAServer Programmer’s Guide.
Copyright © 2005. Sybase Inc. All rights reserved. |