TraditionalJVMInvocation Page History
- Start a traditional JVM process, with a
mainmethod spawns a new JVM Thread called
mainmethod then waits on a semaphore. This prevents the JVM from winding down.
windowmessages. The messages received by this listener are buffered in a queue.
Dispatcherthread then runs a loop and calls a native method called
receiveTask()asynchronously requests a message from the queue and returns it to the
- These messages are method invocation requests, with a promise resolver attached. These requests are fulfilled by the Dispatcher, and any associated promises are then marked as resolved.
Edit: On second thoughts, a separate dispatcher thread is probably not required. The dispatching could be carried out on the main JVM thread itself.
Last edited by Jim Sproch