java - rmi callback gotchas? -
java - rmi callback gotchas? -
what need worry when doing callbacks in rmi? need simple client notification mechanism avoid excessive polling.
i found online example , looks pretty straightforward, client implements interface extends remote (like server does) , passes server, can phone call methods. i'm guessing remote callback can occur on thread, have assume asynchronous client application's normal threads. else there?
two things.
rmi callbacks won't work through firewalls
rmi callbacks execute on different thread original client phone call server. can unexpected synchronization deadlocks if don't take account.
java rmi
Comments
Post a Comment