|
From: Philip K. <pk...@sp...> - 2003-11-05 01:44:02
|
Ok, here is my guess on what is going on. DCOM/COM interfaces exists in a MTA (multi thread apartment) and maintains is own reference counter to threads using it, as stated my Microsoft. When I the java app in ran within wrapper the jni calls are started in new threads. I can view this via the Microsoft debugger. When the first call finishes that thread ends, (prior to me next jni call) and it kills the last and only reference in the MTA. Thus when the other JNI calls go to use this interface it now longer exists. So the question is why do the jni calls get place in new threads. This is not the results when the app is not ran within wrapper. IE "java myAppClass" Thanks Phil |