As I understand, spring has a nice framework for RMI that looks like its still using the old school UnicastRemoteObject class. What if i wanted to use Activation instead, does spring support this? I havn't found any documents to support this? I am confused if this is actually implementable through spring?? Also just to mention, the rmid is another daemon needed. Does spring deal with this at all? Also from anyone elses experience, what would be the best way to use Activation and incorporate Spring?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Spring doesn't support RMI activation. Spring includes an RmiServiceExporter
for calling remote objects that contains nice improvements over standard RMI, such as not requiring that services extend java.rmi.Remote
.
This being said, why are you interested in RMI activation, as opposed to a RESTful web service instead?