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);

Corporate Information

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

Contact Us

Copyright 2024 Atomikos BVBA | Our Privacy Policy
By using this site you agree to our cookies. More info. That's Fine