IBM's JDBC drivers support multiple JDBC driver types. Depending on what you configure, you may need to install IBM client software on the machine that connects via JDBC.

The following example shows a configuration that does NOT require additional client installations because it uses driver type 4 (also known as the "thin" driver type):
      import com.ibm.db2.jcc.DB2XADataSource;

      DB2XADataSource db2DataSource = new DB2XADataSource();
      db2DataSource.setDatabaseName("...");
      db2DataSource.setUser("...");
      db2DataSource.setPassword("...");
      db2DataSource.setServerName("..."); //host name of server
      db2DataSource.setPortNumber("...");
      db2DataSource.setDriverType(4);
      AtomikosDataSourceBean atomikosDataSourceBean = new AtomikosDataSourceBean();
      atomikosDataSourceBean.setXaDataSource(db2DataSource);

Contact Us

Atomikos Corporate Headquarters
Hoveniersstraat, 39/1, 2800
Mechelen, Belgium

E info@atomikos.com
E sales@atomikos.com
T +3215613055

Subscribe to our newsletter

Never miss an update

Copyright 2019 Atomikos BVBA
This website is using cookies. More info. That's Fine