Tuesday, 27 December 2011

JavaDB URLs

To connect to an existing JavaDB database using the embedded driver:


jdbc:derby:<databaseName>;<URLAttributes>


  1. host: Specifies the computer name or Internet Protocol address where Java DB is running. If Java DB is running on the same computer as that of the client, you can use localhost or 127.0.0.1 as the value of the host option.
  2. Port: Specifies the port number used by JavaDB to accept incoming requests.
  3. databaseName: Represents the name of the database to connect with.

No comments:

Post a Comment