Subject | Re: unavailable database with type2 and java as a service |
---|---|
Author | Roman Rokytskyy |
Post date | 2004-05-10T08:13:56Z |
> I've done some more testing.Try to ask in Firebird-Support group. I suspect that this has
> If i use type2 instead of local as mode my service does not need
> interaction with desktop.
> Does anyone know the reason ?
something to do with the way Firebird server is installed and the fact
that you are trying to connect using IPC, not sockets.
> Another issue:Most likely this is a bug. Can you post here either configuration or
> When i set dataSource.setDatabase() in local-mode i need to set url
> like this: localhost/3050:c:/db.gdb.
> When i only use c:/db.gdb as url my db need to be on the same drive
> as my application.
> The driver does not seem to care about the drive.
code that you use to set up the datasource? Specifying localhost/3050
will always cause your application to connect via sockets (type2
mode), not via RPC. Reason to introduce local mode was that having
string "localhost:/path/to/db" and "c:/path/to/db" we cannot easily
distinguish that in latter case local mode should be used, because "c"
is drive letter, not a host name.
Roman