Can you please clarify what you meant by 'Maybe you should be using native methods'?I mean what I said. You are embedding the activated JVM in a custom exe, presumably because you have other code in there that you want executed: maybe you should be organizing to call that code from Java via JNI. Then you wouldn't need the custom exe, the custom activator, the custom activation system/group/monitor etc.
I have a breakthrough. I am able to host a simple RMI server inside a custom EXE. All I do is inside the main of a Win32 EXE, create the JVM and use JNI to call the ‘main’ of a Java class I wrote below.You don't need a custom exe. You don't need a Java class. You don't need any of this crud. See above. Just make a copy of java.exe, call it whatever you like, and name it in the cmdPath of your ActivationGroupDesc. That's it. Period.