XI30 J2EE AE JDBC adapter
Dennis Kropp,
SAP SI AG
JDBC adapter - prerequisites
this documentation provides information about creating a JDBC sender channel
sender means that a database provides information that are queried (via SELECT statement) and send to XI integration server Prerequisite for using the JDBC adapter is of course access to a database system like SAP DB or MS SQL server or any database that provides a JDBC driver
An appropriate JDBC driver must be deployed on the system. See XI Configuration Guide for more information
Be sure that in SQL Server authentication mode is set to mixed mode. Right click your DBMS Server in Enterprise Manager Tool and select properties ->security-> choose SQL server and windows authentication
a sender agreement is needed for using a jdbc sender communication channel
To configure a complete roundtrip you could define a file receiver channel where the message is delivered to Routing rules and receiver has to be specified as for any other channel in the directory object model
SAP AG 2003, Title of Presentation, Speaker Name / 2
Example1 : Source DB table for sender channel
Data to be read:
the data should be converted into a xml structure and send to XI
SAP AG 2003, Title of Presentation, Speaker Name / 3
IB Directory sender channel configuration
SAP AG 2003, Title of Presentation, Speaker Name / 4
IB Directory sender channel configuration
With this configuration JDBC adapter sends every 5 minutes a resultset depending on the result of the query
SELECT * FROM orders WHERE new = 'true
In this case only db table entries with the value true in column new were selected UPDATE orders SET new='false' WHERE new='true Use UPDATE statement to update a column of the table you can specify which entries were already read and should not be selected next time use <test> if you want only test the db query and do not want an update you may leave the other fields unchanged
SAP AG 2003, Title of Presentation, Speaker Name / 5
XML resultset
<?xml version="1.0" encoding="utf-8"?> <resultset> <row> <Index>1</Index> <artNumber>3334</artNumber> <description>Athlon XP 2300+</description> <quantity>4</quantity> <new>true</new> </row> <row> <Index>2</Index> <artNumber>1222</artNumber> <description>INTEL P4 3200</description> <quantity>2</quantity> <new>true</new> </row> <row> <Index>3</Index> <artNumber>3222</artNumber> <description>Athlon64 3200</description> <quantity>10</quantity> <new>true</new> </row> <row> <Index>4</Index> <artNumber>3223</artNumber> <description>Athlon64 3400</description> <quantity>5</quantity> <new>true</new> </row> </resultset>
SAP AG 2003, Title of Presentation, Speaker Name / 6