![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
hello, has anyone working examples of multiple threads sharing the same DbEnv to write and read to a database (in my case an XmlContainer)? I am trying to do that from a servlet engine, and have no success until now: I must close and open my XmlContainer for each transaction, and it is extremely slow. |
#3
| |||
| |||
|
|
In article <89910ac4.0309250049.143dbd89 (AT) posting (DOT) google.com>, Stan Pinte wrote: hello, has anyone working examples of multiple threads sharing the same DbEnv to write and read to a database (in my case an XmlContainer)? I am trying to do that from a servlet engine, and have no success until now: I must close and open my XmlContainer for each transaction, and it is extremely slow. Can't you just have a DbEnv for each thread? I can see how sharing the DbEnv across threads won't work, unless you wrap it all in synchronized sections, but multiple DbEnvs on one database must be possible. If not, I don't see how BDB/xml can be used in servlets at all. |
#4
| |||
| |||
|
|
hello, has anyone working examples of multiple threads sharing the same DbEnv to write and read to a database (in my case an XmlContainer)? |
|
I am trying to do that from a servlet engine, and have no success until now: I must close and open my XmlContainer for each transaction, and it is extremely slow. thanks a lot, Stan. |
![]() |
| Thread Tools | |
| Display Modes | |
| |