Subject Re: [Firebird-Java] Firebird connectivity
Author John Zoetebier
On Thu, 11 Sep 2003 18:42:40 -0000, batsoww <batsoww@...> wrote:

> Hi, I am new to the world of Firebird and Java and I was wondering
> what the basic syntax of the database url and the driver url would
> look like. I am reading the database url from a file and passing it
> to the DriverManager.connection(Database_URL);
>
> I just don't understand how to write the actual URL's in the correct
> format in order to connect to the database.
>

When you download FireBird there is a file FAX.txt.
From that file:
==>
Two forms of JayBird can be used. FBDriver is used much like the old
Interclient driver. FBWrappingDataSource has internal connection pooling
capability. Examples of both are included here. Code examples of many of
the classes and methods used by JayBird can be found in the src/test
subdirectory of the source code available on SourceForge.net, see question
13 below.

JayBird supports two URL syntax formats:

Standard format= jdbc:firebirdsql:[//host[:port]/]<database>

FB old format= jdbc:firebirdsql:[host[/port]:]<database>
==>

Furthermore there is a samples folder with 2 Java programs.
The <database> is the qualified name of the database, i.e. includes the
path.

--
John Zoetebier
Web site: http://www.transparent.co.nz