Subject | Re: Firebird connectivity |
---|---|
Author | batsoww |
Post date | 2003-09-15T19:28:40Z |
Can someone give an example of exactly what would go in Class.forName
(JDBC_DRIVER) and DriverManager.getConnection(DATABASE_URL).
I need to see an exact example of what goes inside the JDBC_DRIVER
and DATABASE_URL spaces.
Thanks,
Batsoww
--- In Firebird-Java@yahoogroups.com, John Zoetebier
<john.zoetebier@t...> wrote:
(JDBC_DRIVER) and DriverManager.getConnection(DATABASE_URL).
I need to see an exact example of what goes inside the JDBC_DRIVER
and DATABASE_URL spaces.
Thanks,
Batsoww
--- In Firebird-Java@yahoogroups.com, John Zoetebier
<john.zoetebier@t...> wrote:
> On Thu, 11 Sep 2003 18:42:40 -0000, batsoww <batsoww@y...> wrote:wondering
>
> > Hi, I am new to the world of Firebird and Java and I was
> > what the basic syntax of the database url and the driver urlwould
> > look like. I am reading the database url from a file and passingit
> > to the DriverManager.connection(Database_URL);correct
> >
> > I just don't understand how to write the actual URL's in the
> > format in order to connect to the database.old
> >
>
> 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
> Interclient driver. FBWrappingDataSource has internal connectionpooling
> capability. Examples of both are included here. Code examples ofmany of
> the classes and methods used by JayBird can be found in thesrc/test
> subdirectory of the source code available on SourceForge.net, seequestion
> 13 below.includes the
>
> 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.
> path.
>
> --
> John Zoetebier
> Web site: http://www.transparent.co.nz