简体   繁体   English

Java Spring RMI激活

[英]Java Spring RMI Activation

As I understand, spring has a nice framework for RMI that looks like its still using the old school UnicastRemoteObject class. 据我了解,spring有一个不错的RMI框架,看起来它仍然使用旧式的UnicastRemoteObject类。 What if i wanted to use Activation instead, does spring support this? 如果我想改用激活该怎么办,spring是否支持此功能? I havn't found any documents to support this? 我没有找到任何文件来支持这一点? I am confused if this is actually implementable through spring?? 如果这实际上可以通过Spring实现,我感到困惑? Also just to mention, the rmid is another daemon needed. 还要提一下,rmid是另一个需要的守护程序。 Does spring deal with this at all? 春天完全可以解决这个问题吗? Also from anyone elses experience, what would be the best way to use Activation and incorporate Spring? 同样从其他任何人的经验来看,使用激活和合并Spring的最佳方法是什么?

Spring doesn't support RMI activation. Spring不支持RMI激活。 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 . Spring包含一个用于调用远程对象RmiServiceExporter ,它包含对标准RMI的良好改进,例如不需要服务扩展java.rmi.Remote

This being said, why are you interested in RMI activation, as opposed to a RESTful web service instead? 话虽这么说,为什么您对RMI激活而不是RESTful Web服务感兴趣?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM