skip to main content
Using the driver : Connecting from an application : Connecting using the JDBC Driver Manager
  

Try DataDirect Drivers Now

Connecting using the JDBC Driver Manager

One way to connect to a REST service is through the JDBC DriverManager using the DriverManager.getConnection() method. As the following example shows, this method specifies a string containing a connection URL.
Connection conn = DriverManager.getConnection
("jdbc:datadirect:autorest:Config=C:/path/to/example.rest;");
* Passing the connection URL
* Testing the connection