JDBC Agent
The JDBC agent is the DirX Identity agent that handles the import and export of information into and out of relational databases. It is based on the Identity Integration Framework.
The JDBC agent can:
-
Carry out search (SELECT) operations on configured tables
-
Carry out add (INSERT), modify (UPDATE), and delete (DELETE) operations, and
-
Execute stored functions and procedures.
-
There are a variety of trace-file options.
The following figure illustrates the components of the JDBC agent.
The JDBC agent carries out the actions specified by the file marked as "File In" in the diagram, and makes a return (depending on the action) to the file marked "File out".
The JDBC agent is able to accept as data input either an SPML request or (in the case of modify operations) LDIF-change format. Similarly, as data output the JDBC agent produces either SPML response or LDIF-content.
The actions of the JDBC agent are normally carried out on information within the relational database shown at the bottom of the diagram. The JDBC driver at lower centre provides a URL-based method for connecting to such databases, as well as giving the means of accessing it for searches and updates. JDBC can also access databases other than relational ones.
JDBC drivers are available for many standard databases. In addition, a generic JDBC/ODBC driver is available on certain target environments, and thus gives connectivity to many database systems for which ODBC access is available. This generic driver is not the preference for high-performance access, but has the necessary facilities to support the JDBC agent.
Databases vary in the list of data types that they can handle or not (e.g. text or decimal strings, integers, date/time, binary data such as photos, etc.). The Driver-DB Customizer shown at the lower left of the diagram provides an optional facility for identifying unsupported data types and for handling any special behavior for particular data types. There is a default customizer that should handle most normal cases.
Events (information-generating events, error events, warning events) are reported in the log-file.
This section describes:
-
Agent-specific configuration files for export and import operations
-
Data formats
The current agent supports name/password authentication only.
Command-line
The command-line to start the JDBC agent in stand-alone mode is:
java siemens.dxm.connector.framework.AgtSessionExe
-c configfile
-m mappingfile
The -m flag is mandatory, and must specify the location of the mapping file for the JDBC agent. The default file is jdbcMapping.xml. It is provided as part of the JDBC agent, and must not be modified. The batch file to start the agent inserts this parameter automatically and does not require it as input.
Parameters
configfile
All parameters of JDBC operation are defined in the agent’s XML-formatted config file.
mappingfile
Mandatory, and must specify the location of the default file jdbcMapping.xml.
Input and Output Data File Formats
For details, see the section "Input and Output Data File Formats" of the JDBC connector.
CLASSPATH Environment Variable
You can use the CLASSPATH environment variable to define additional jar files for specific JDBC drivers to be used by the JDBC agent. To define or extend this environment variable:
Windows
If the JDBC agent should be executed under the system account, perform these steps:
-
Extend the system environment variable CLASSPATH (or add the variable if it does not exist) so that the jar file of the requested JDBC driver is on the classpath and so that this extension is syntactically correct and does not interfere with other applications on your computer.
-
Reboot the system
If the JDBC agent should be executed under a Windows user account, perform these steps:
-
Extend the user environment variable CLASSPATH (or add this variable if it does not exist) so that the jar file of the requested JDBC driver is on the classpath and so that this extension does not interfere with other applications on your computer.
-
Using the Expert View of the DirX Identity Manager, configure your JDBC agent job so that it runs under the specified user account (tab Authentication).
UNIX
Define a file install_path/customer_rc.sh to extend the environment variable CLASSPATH for the driver. Setting and exporting this variable must be done in separate commands, must be syntactically correct and must not interfere with other applications. The environment setting will become effective for the user after subsequent logins only and for the C++-based Server after the next restart only. Here is a sample content for this file:
CLASSPATH=$CLASSPATH:/opt/myjdbc/myjdbc.jar
export CLASSPATH