You can connect to your database by referencing a JDBC DataSource object in your connection string, or by including the connection information directly in the connection string. You can also share a database connection between Java and COBOL.