You connect a Java application to a SAP MaxDB database using JDBC.
You have loaded the SAP MaxDB JDBC driver.
More information: Loading the JDBC Driver
You have started the SAP MaxDB X Server (communication server).
More information: X Server, Starting the X Server
Note that you must start X Server even if the Java application and the database are located on the same computer.
To connect to a database, use one of the following two options:
The java.sql.DriverManager.getConnection method (part of the Java platform)
The com.sap.dbtech.jdbcext.DataSourceSapDB class (contained in sapdbc.jar)
SAP customers can set up an SSL connection between the Java application and the database. More information: Setting Up an SSL Connection