Data Transformation Engine Intelligent Business Integration Reference Guide
Chapter 4 - Developing Custom Adapters XML Descriptor File
Intelligent Business Integration Reference Guide
53
XML Descriptor File
The XML descriptor file adapters.xml, which is located in the Mercator installation
directory, contains a single tag per adapter, including a number of attributes to
provide information about the adapter. The following is an excerpt from the file:
<Adapters>
<M4Adapters>
<M4Adapter name="File" alias="FILE" id="0" type="file" library="m4file"/>
<M4Adapter name="Buffer" alias="BUF" id="4" type="buff" />
<M4Adapter name="Database" alias="DB" id="5" type="db" library="dbutil"/>
<M4Adapter name="Application" alias="APP" id="6" type="app" />
<!-- <M4Adapter name="TIB/RV" alias="RV" id="109" type="msg" library="m4tibrv"
version="5.x"/> -->
<M4Adapter name="Batch File" alias="BAT" id="110" type="app" library="m4batch"/>
<M4Adapter name="Shell Script" alias="SHL" id="111" type="app" library="m4shell"/>
<M4Adapter name="OracleAQ" alias="AQ" id="112" type="msg" library="m4aq" />
<M4Adapter name="Sink" alias="SINK" id="113" type="app" library="m4sink"/>
<M4Adapter name="Tuxedo" alias="TUX" id="114" type="msg" library="m4tux"
version="6.x"/>
<!-- UserAdapters must have id numbers in the range 200-299. -->
<UserAdapters>
<!-- <UserAdapter name="File Sample" alias="SFILE" id="201" type="file" library="filesamp"
vendor="Mercator"/> -->
</UserAdapters>
</Adapters>
A description of the various tags for each of the adapter entries is as follows:
Attribute Description
name Name of the adapter used in the adapter list in the Map
Designer and Integration Flow Designer (such as Database or
WebSphere MQ (server)).
alias Abbreviated name of the adapter that is used in a GET or PUT
function inside map rules, as well as command line overrides
(such as
DB for database or MQS for WebSphere MQ).
id Identification type of the adapter. For adapters developed by
Mercator, these numbers are between 0 and 200. For external,
custom developed adapters, the ID numbers should be >=
200.
type Class type of the adapter. For example, database (db) or
messaging (msg).