Subject | Re: [firebird-support] FB Embedded: How does it know if it should be a server? |
---|---|
Author | Nando Dessena |
Post date | 2004-11-17T11:01:44Z |
David,
d> The fbembed.dll, is according to documentation, both able to act as
d> a local server and as a client for a remote server.
which is not strictly correct. It can act as an embedded (meaning
in-process) engine or as a client for an external server. Never ever
as a server (meaning something that serves requests coming from other
processes or machines).
d> How does it know/detect whether it should be a server itself, or
d> not? I guess that if it is a server part of the connection string,
d> then it will act as a client only, otherwise, it will be a server.
d> This would mean that the "local connection" possibility in the
d> normal fbclient.dll is gone in this version, right?
Correct.
d> Btw - are there other thread-safe issues you should know about when
d> you're using the embedded server?
Use a separate connection per thread, apply the usual thread safety
measures to protect shared resources in your application and you're
not going to have any problems.
Ciao
--
Nando Dessena
mailto:nandod@...
======================================================
I support Firebird, I am a Firebird Foundation member!
Join today at http://www.firebirdsql.org/ff/foundation
======================================================
d> The fbembed.dll, is according to documentation, both able to act as
d> a local server and as a client for a remote server.
which is not strictly correct. It can act as an embedded (meaning
in-process) engine or as a client for an external server. Never ever
as a server (meaning something that serves requests coming from other
processes or machines).
d> How does it know/detect whether it should be a server itself, or
d> not? I guess that if it is a server part of the connection string,
d> then it will act as a client only, otherwise, it will be a server.
d> This would mean that the "local connection" possibility in the
d> normal fbclient.dll is gone in this version, right?
Correct.
d> Btw - are there other thread-safe issues you should know about when
d> you're using the embedded server?
Use a separate connection per thread, apply the usual thread safety
measures to protect shared resources in your application and you're
not going to have any problems.
Ciao
--
Nando Dessena
mailto:nandod@...
======================================================
I support Firebird, I am a Firebird Foundation member!
Join today at http://www.firebirdsql.org/ff/foundation
======================================================