Data Transformation Engine Services Guide

Chapter 21 – Adding the Adapter to Mercator Command Server
123
Removing Mercator supplied Adapters
You may also wish to remove one or more of the Mercator supplied adapters; for
example, the FTP adapter, the HTTP adapter, the Tuxedo Adapter, and so on. The
following procedure will describe how to do this.
Adapters are supplied as archive files (for example, libm4tux.a). They are built (linked)
into the Mercator Command Server. The following procedure must be followed in
order to remove an adapter. For purposes of illustration, we will show how to remove the
Tuxedo Adapter and then rebuild the Mercator Command Server without the Tuxedo
Adapter. The following files must be changed:
makefile and testapi.mak
Perform the following steps for these 2 make files:
1. Remove the -DBEATUXEDO from the following line:
ADAPTER_DEFS = -DBEATUXEDO -DM4FTP -DM4HTTP -DM4EMAIL
2. Remove the ‘libm4tux.a from the following line:
ADAPTERSD = libm4tux.a libm4ftp.a libm4http.a libm4email.a
3. Remove the -lm4tux’ from the following line:
ADAPTERS = -lm4tux -l m4ftp -l m4http -lm4email
4. Tuxedo adapter only: remove the following 2 lines or just comment them out by
adding a # in column 1. (The Tuxedo adapter is somewhat of a special case in that it
also requires several supporting Tuxedo supplied libraries.)
BEATUX = -l tux -l tux2 -l fml -l fml32 -l gp -l buft -l tux -l tux2 -l fml -l
fml32 -l gp -l buft
BEATUXLIB = -L /tuxedoR6.5/lib
10. FTP, HTTP, Email adapters only: remove the following 2 lines or just comment them
out by adding a # in column 1. Only do this if you are removing all of these
adapters. If you are only removing (for example) the FTP adapter and leaving the
HTTP adapter, do not perform this step.
SSLIBSD = libsslibs.a
SSLIBS = -l sslibs
Another example is to remove the FTP adapter, perform the following steps on the 2
make files:
b. Remove the ‘-DM4FTP’
c. Remove the ‘libm4ftp.a
d. Remove the ‘–l m4ftp’
e. Skip this step; it’s for Tuxedo adapter only.
f. Do this step only if you also removed the HTTP and Email adapters.
nuladapt.c
Either touch this file or delete the file named nuladapt.o. Do NOT modify this file.
Then at the command line, and while in the directory /installdir/src; type make in order
to rebuild the Mercator Command Server; and type makef testapi.mak in order to
rebuild the sample testapi and jtestapi programs.
Attempts to execute maps with the Mercator Command Server that require the Tuxedo
adapter will now get an error accompanied by a message that the adapter is not supported.