Java Spring RMI 激活 [英] Java Spring RMI Activation

查看:79
本文介绍了Java Spring RMI 激活的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,spring 有一个很好的 RMI 框架,看起来它仍在使用老派的 UnicastRemoteObject 类.如果我想改用 Activation 怎么办,spring 支持吗?我还没有找到任何文件来支持这一点?我很困惑这是否真的可以通过 spring 实现?还要提一下,rmid 是另一个需要的守护进程.spring 会处理这个问题吗?另外从其他人的经验来看,使用 Activation 和合并 Spring 的最佳方法是什么?

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?

推荐答案

Spring 不支持 RMI 激活.Spring 包含一个 RmiServiceExporter 用于调用包含对标准 RMI 的良好改进的远程对象,例如不需要服务扩展 java.rmi.Remote.

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.

话虽如此,您为什么对 RMI 激活感兴趣,而不是 RESTful Web 服务?

This being said, why are you interested in RMI activation, as opposed to a RESTful web service instead?

这篇关于Java Spring RMI 激活的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆