Data Transformation Engine Services Guide

Chapter 18 – Linking the Custom Adapter Into the Execution Environment
109
Chapter 18 – Linking the
Custom Adapter Into the
Execution Environment
This chapter describes how to link your custom adapter into the Tuxedo or CORBA
servers.
Adding User adapters to the NonStop DTE Tuxedo
Transformation Server
To add a new user adapter to the NonStop DTE Tuxedo Transformation Server, you must
change three files and then rebuild the Tuxedo Server.
To rebuild the Tuxedo Server (mercserv) to add or subtract user-written adapters,
perform the following steps (installdir is the home directory where you have installed
NSDTE. The default is /usr/tandem/nsdte):
8. Modify the file mercserv.mak in /installdir/src as follows:
a. If you want to remove the sample adapter(useradapter), comment the following
line:
MERCLIBS = libuseradapter.a
to:
#MERCLIBS = libuseradapter.a
b. Modify the following line to add a new user written adapter (for example,
myadapter):
MERCLIBS = libuseradapter.a
to:
MERCLIBS = libuseradapter.a libmyadapter.a
c. At the command line, type the following:
cd /installdir/src - change to directory containing sources
touch nuladapt.c - force nuladapt.c to recompile
make -f mercserv.mak - rebuild Tuxedo Server mercserv
3. Copy the executable file mercserv from /installdir/src to installdir/bin directory.
Adding User Adapters to the CORBA
Transformation Server
To add a new user adapter to the CORBA Transformation server, you must change three
files and then rebuild the CORBA Transformation Server.