Chapter 32 Creating and Using EAServer 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".
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 Jaguar Manager. Thus, components that run as pseudocomponents are subject to these restrictions:
A pseudocomponent must be defined in Jaguar 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 Jaguar Manager. You must configure the properties described in this section.
Using 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.
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:
com.sybase.sample.PseudoJavaImpl
.
Java pseudocomponents must have a public constructor
If the implementation class declares a default (no arguments)
constructor, the default constructor must be declared public.
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:
mypseudo
indicates
the Windows file mypseudo.dll on Windows.
PseudoCPPImpl
).
Copyright © 2002 Sybase, Inc. All rights reserved. |
![]() |