Subject Re: [Firebird-Java] Creating DB on Embedded Firebird via Jaybird
Author Roman Rokytskyy
Hi Rafael,

> The code is:
>
> ...
> It compiles normally, but when I try to run I get the following
> error message:
>
> "org.firebirdsql.gds.GDSException: Unable to complete network
> request to host "localhost". Failed to estabilish a connection.
> null "
>
> I have check the archives of the group, but there is no solution
> regarding this problem. It seems to me that the FBManager is failing
> to understand the Embedded nature of the database to be created. It
> should not make network requests.

We had this bug some time ago. Which version of JayBird do you have? JayBird
1.5.4 should work correctly. Please test it and report your results here.

> Also I´ve been investigating the API to learn how to manually create
> a new database, and there is a method called "isc_create_database"
> on org.firebirdsql.gds.GDS which is an Interface implemented by
> AbstractGDS, which is an Abstract Class that I, of course, cannot
> extend since I have no idea of the implementation of some methods.

If you look in the source of the FBManager, you will see that it uses
exactly that call. There is a GDSFactory responsible for instantiating
appropriate GDS implementation depending on the type you specify.

Roman