Table of Contents

Search

  1. Preface
  2. Introduction to the Informatica Connector Toolkit
  3. Installing and Upgrading the Informatica Connector Toolkit
  4. Building an Adapter
  5. Connection Attributes
  6. Type System
  7. Metadata Objects
  8. Partitioning Capability
  9. Run-time Behavior
  10. Adapter Example: MySQL
  11. Adapter Example: YouTube
  12. Metadata Models
  13. ASO Model
  14. Adapter Project Migration

Informatica Connector Toolkit Developer Guide

Informatica Connector Toolkit Developer Guide

Implement Run-Time Messages

Implement Run-Time Messages

To implement run-time messages that require localization, implement the logMessage() helper method in the <ConnectorID><NMOName>DataAdapter.<C or Java> file. The logMessage() method logs messages to the session log.
The following Java sample code shows the message parameters passed to the logMessage() method:
logMessage(Messages.Test_CONN_SUCC_200, "admin", 5040, 138.76);
The following C sample code shows the message parameters passed to the INFAADPLogMessage() method:
INFAADPLogMessage(infaDataSessionHandle, INFA_MSG_ERROR,INFA_TRACE_NONE, CONN_ID,"admin",12,12.3);
To implement the run-time messages that do not require localization, implement the logger.logMessage() method.


Updated April 11, 2019