Subject | Re: [Firebird-Java] Database URL and database alias |
---|---|
Author | Mr. Richard Tomkins |
Post date | 2008-11-21T00:56:25Z |
Roman,
Goodness, you are too kind to respond so quickly,
If I understand your reference to firebird.conf, then I should modify/
make entries for RootDirectory and also DatabaseAccess?
============================================
This is what works in DriverExample.java;
String databaseURL = "jdbc:firebirdsql:localhost/3050:/Library/
Frameworks/Firebird.framework/Versions/A/Resources/examples/empbuild/
employee.fdb";
============================================
This is the content of aliases.conf, not the @prefix@; I do not know
what this is, or should I simply replace it with $FIREBIRD_HOME?
# ------------------------------
# List of known database aliases
# ------------------------------
#
# Example Database:
#
employee.fdb = @prefix@/examples/empbuild/employee.fdb
employee = @prefix@/examples/empbuild/employee.fdb
#
# Live Databases:
#
============================================
Regards, Richard Tomkins
Goodness, you are too kind to respond so quickly,
If I understand your reference to firebird.conf, then I should modify/
make entries for RootDirectory and also DatabaseAccess?
============================================
This is what works in DriverExample.java;
String databaseURL = "jdbc:firebirdsql:localhost/3050:/Library/
Frameworks/Firebird.framework/Versions/A/Resources/examples/empbuild/
employee.fdb";
============================================
This is the content of aliases.conf, not the @prefix@; I do not know
what this is, or should I simply replace it with $FIREBIRD_HOME?
# ------------------------------
# List of known database aliases
# ------------------------------
#
# Example Database:
#
employee.fdb = @prefix@/examples/empbuild/employee.fdb
employee = @prefix@/examples/empbuild/employee.fdb
#
# Live Databases:
#
============================================
Regards, Richard Tomkins
On 20-Nov-08, at 7:32 PM, Roman Rokytskyy wrote:
> Hi,
>
> > OS X 10.4.11
> > Firebird 2.1.1
> > Jaybird 2.1.6
> >
> > Why does JDBC require the Database URL to be the full path to
> > employee.fdb, rather than simply the database name?
>
> It does not, but you have to configure the firebird.conf and possibly
> aliases.conf in this case. Your choice.
>
> > I just found aliases.conf, what is @prefix@?
>
> Hmmm... I do not know anything about it...
>
> Roman
>
>
[Non-text portions of this message have been removed]