Benefits of pseudocomponents  Instantiating pseudocomponents

Chapter 34: Creating and Using EAServer Pseudocomponents

Creating pseudocomponents

For the most part, pseudocomponents can be created and implemented like any EAServer CORBA/Java or C++ component. However, since they are not executed by the component dispatcher, there are additional restrictions on their implementation and use. This section explains the implementation restrictions and required property settings for pseudocomponents. For additional information on creating components, see “Defining components”.


Implementation restrictions

Pseudocomponents must be implemented in C++ or Java. If using Java, the component type must be Java/CORBA; you cannot instantiate an Enterprise JavaBean as a pseudocomponent.

Since pseudocomponents execute outside of the EAServer dispatcher, their execution is not governed by component properties defined in EAServer Manager. Thus, components that run as pseudocomponents are subject to these restrictions:


Defining a pseudocomponent

A pseudocomponent must be defined in EAServer Manager in order to generate stubs and skeletons. Stubs and skeletons are required to execute the pseudocomponent. You can use any of the techniques described in “Defining components” to define the component in EAServer Manager. You must configure the properties described in this section.

NoteUsing existing components You can also instantiate existing C++ or CORBA/Java components as pseudocomponents, provided the implementation abides by the restrictions listed in this document.


Properties for a Java pseudocomponent

For a Java pseudocomponent, set the following properties and leave other properties at their default settings. Properties other than these have no affect on the behavior of the pseudocomponent:


Properties for a C++ pseudocomponent

The Component Properties dialog box appears. Set the following fields for a C++ pseudocomponent, leaving other fields at their default settings. Properties other than these have no affect on the behavior of the pseudocomponent:


Direct-access pseudocomponent stubs and skeletons

You can generate special stubs and skeletons that improve the performance of pseudocomponent method calls issued from Java or C++. In a process called marshalling, regular CORBA stubs convert parameter and return values to the format required for IIOP network transport. Direct-access pseudocomponent stubs and skeletons improve performance by eliminating the marshalling step.

To generate direct-access pseudocomponent stubs and skeletons in EAServer Manager, select the normal EAServer Manager settings for Java/CORBA or C++ Stubs, except in the Advanced Options wizard page, select the option Generate Pseudo Component Access in C++ and Java Stubs and Skeletons.





Copyright © 2005. Sybase Inc. All rights reserved. Instantiating pseudocomponents