Hello,
I have a problem about using Ice to encapsulate some database operation api, like open(), readdata(), close().
The database api require call attachdb() before visit database in thread different to the thread call open() , and call detach() when leave the thread. How can I encapsulate these details with Ice?
I know that in default there's only one service thread beside the main thread. I plan to call open() in the main thread. But where can i detect the begin and the end of thread to call attach()/detach() operation?
May someone give me any advice?

Reply With Quote