RMI Java multiple instances of the same RMI Server -
we have server creating new thread each request gets, server gets data needs save later.
now got request implement rmi can observe kind of data being saved.
how can handle best way? shall make rmi server each thread? can have multiple instances of same service on same address , let observer register of them?
i'm using google example rmi access: https://sites.google.com/site/jamespandavan/home/java/sample-remote-observer-based-on-rmi#toc-running-the-server-client
you don't need remote object per thread, because won't have visible threads. remote object multi-threaded , takes care of own incoming connections. throwing stuff away rather adding.
you might need remote object per client, if wamt them behave sessions, that's different story.
Comments
Post a Comment