You connect a Java application to an 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: Global Listener and X Servers, Starting the Global Listener and/or Installation-Specific X Servers
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