IBM Integration Bus, Version 10.0.0.3 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS


Creating a connector descriptor file

A connector descriptor file is used to associate the runtime connector with a user-defined node. This file creates a link between the logic in a message flow and the code that is called at run time.

Before you begin

Create a connector factory and appropriate connectors. For more information, see Developing a connector for the IBM Integration Bus runtime environment.

About this task

The connector.xml descriptor file contains the elements connectorProvider and connectorFactory: IBM Integration Bus associates the runtime connector with a user-defined node by using these properties. The connectorProvider element in the connector.xml file must match the connectorName property on the user-defined node.

Procedure

To create the connector.xml descriptor file, complete the following steps.

  1. Create an XML file that is called connector.xml and specify the connectorProvider and connectorFactory elements.
    Here is an example of a connector.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
     <connectorProvider name="myDatabaseConnector">
         <connectorFactory className="connector.database.myConnectorFactory">
             <properties>
                 <property name="name1" value="value1"/>
             </properties>
         </connectorFactory>
     </connectorProvider>
  2. Save the connector.xml file in your Java™ project, at the root of the src folder.

What to do next

After you create the connector factory, connectors, and connector descriptor file, package the appropriate files (see Packaging a connector for the runtime environment.

cb23113_.htm | Last updated 2015-11-27 00:02:16