|
From: Anthony B. <ant...@ho...> - 2003-12-11 00:08:48
|
Hello all, I am testing out the wrapper and have found a perculiar problem. I read through the other posts on this sort of problem and did not find something to provide guidance. I am getting this error periodically. It is happening every 3-4 times out of 5 runs. The code where the wrapper is determining there are no more non-daemon threads is trying to connect to content manager through the 8.2 IBM API. I am using the DKDatastoreICM object for the connection. The call to DKDatastoreICM.connect() is blocking (while trying to connect). It is during this block where the wrapper is incorrectly determining that there are no daemon threads running. I have created a stop gap solution, but would like a better one. Just before calling connect(), I am spawning a new thread that sleeps for 60 seconds and then dies. Since I have done this, the wrapper has not shutdown because of non-daemon threads and my CM connection has always succeeded. I have run it 10+ times. I choose to implement the WrapperListener interface. I have not installed it as a service yet. It is still being run on the console. It run fine when not being started by the wrapper. I can post whatever else is necessary to provide extra details. Thanks a lot for any help. --Anthony Beaty ant...@ho... _________________________________________________________________ Browse styles for all ages, from the latest looks to cozy weekend wear at MSN Shopping. And check out the beauty products! http://shopping.msn.com |