问题
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?
来源:https://stackoverflow.com/questions/38257522/java-spring-rmi-activation