O'Reilly logo

Apache Derby—Off to the Races: Includes Details of IBM® Cloudscape™ by Dan Scott, George Baklarz, Paul C. Zikopoulos

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Connecting with DB2 JDBC Drivers

When connecting to an Apache Derby Network server, an application needs to load a connection URL that is specific to the network server. In addition, a remote connection requires a user name and a password. If authentication has not been set up in Apache Derby, any user name and password can be used, and they are ignored. Refer to Chapter 7, “Security,” for more information on security in Apache Derby.

The URL needed to access the network server is:

jdbc:derby:net://<server>[:<port>]/<databaseName>
   :user=<value>;password=<value>;
   [<Apache Derby URL attribute>=<value> [;...]] 
   [:<Universal Driver attribute>=<value>; [...;]] 

The syntax for connection to the network server differs slightly from the syntax used to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required