A Java™ wrapper
is a set of classes that act as an interface between the following executables:
- A servlet or a hand-written Java program, on the one hand
- A generated program or EJB session bean, on the other
You generate the Java wrapper classes if you use a build
descriptor that has these characteristics:
- The build descriptor option enableJavaWrapperGen is
set to yes or only; and
- The build descriptor option linkage references
a linkage options part that includes a callLink element
to guide the call from wrapper to program; and
- One of two statements apply:
- The call from wrapper to program is by way of an EJB session bean (in
which case the callLink element, linkType property
is set to ejbCall); or
- The call from wrapper to program is remote (in which case the callLink element, type property
is set to remoteCall); also, the callLink element, javaWrapper property
is set to yes.
If an EJB session bean mediates between the Java wrapper classes and an EGL-generated
program, you generate the EJB session if you use a build descriptor that has
these characteristics:
- The build descriptor option enableJavaWrapperGen is
set to yes or only; and
- The build descriptor option linkage references
a linkage options part that includes a callLink element
to guide the call from wrapper to EJB session bean (in which case the type property
of the callLink element is set to ejbCall).
For further details on using the classes, see Java wrapper
classes. For details on the class names, see Generated output (reference).