Re: [cx-oracle-users] is SessionPool thread safe?
Brought to you by:
atuining
From: Forest W. <mo...@ti...> - 2005-09-16 16:23:13
|
Yes, I understand now, thanks. Too bad Oracle's docs aren't more explicit. :) Anthony Tuininga <ant...@gm...> wrote: > Ok, I'll try again. :-) As far as I know the session pool acquire > method is thread safe. There is no Oracle documentation that says > otherwise and the description of OCI_THREADED mode seems to imply that > it is thread safe. We have also done precisely what you are doing > (acquiring a connection from a pool in a worker thread) in our own > product and have never run into a problem. If we forget to set > "threaded =3D True" in the session pool constructor, though, all kinds > of trouble occurs. :-) Does that answer your question sufficiently > now? |