Search code examples
javamultithreadingrmi

Implement RMI thread dispatch policy


I'm implementing in Java a server for an Android game using RMI. I found out I can't handle thread dispatching with any RMI class method. Is there a workaround to implement a thread dispatch policy still using RMI?

Thank you.


Solution

  • I found out I can't handle thread dispatching with any RMI class method

    I don't know what this means. You can implement any thread despatch policy you like. RMI doesn't stop you.

    However RMI already has its own thread despatching, for mapping incoming invocations to server threads, which you can't mess with, so you may not need your own at all.