On 7/13/07, Bryan Pendleton <[EMAIL PROTECTED]> wrote:
> 1) Is FbConnection thread safe? Can two threads make calls
> on the same connection at the same time? If not, can different
> threads serially re-use the connection (first one thread
> uses it, then later another thread uses it)?

No. You should use connection pool and open connection as latest as
possible and close it as soon as possible. This brings you a benefit
from using connection pool and makes life easier.

> 2) What is supposed to be the behavior if:
>     - Thread A is currently making a call on a FbConnection, and
>     - Thread B calls Connection.close()
> Should I expect to see Thread A throw some sort of
> "Connection has been closed" exception?

According to 1), this is wrong.

-- 
Jiri {x2} Cincura (Microsoft Student Partner)
http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to