公开为RMI服务的EJB的并发使用 [英] Concurrent usage of an EJB that is exposed as RMI service

查看:183
本文介绍了公开为RMI服务的EJB的并发使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立了一个模拟使用相同RMI服务的多个客户端的应用程序。然后,每个客户端检索并上传数据到服务器,并发调用此服务。我担心的是,如果每个删除调用需要一些时间,远程服务实现(jBoss 5 EJB)可以远程处理这些调用或将其序列化。

I have built an application which simulates several clients using the same RMI service. This service is then invoked concurrently by every client retrieving and uploading data to the server. My concern is if every remove invocation takes some time does the remote service implementation (jBoss 5 EJB) can handle these calls remotely or it serializes them down.

然后我必须限制客户端的数量,以防止减慢它们。

If the latter is the case then I have to limit the number of clients to prevent slowing them down.

推荐答案

除非远程方法实现执行某种类型的同步,否则RMI调用不会被顺序化。这适用于RMI / JRMP和RMI / IIOP。

RMI calls are not sequentialized unless the remote method implementations perform synchronization of some kind. This applies to both RMI/JRMP and RMI/IIOP.

这篇关于公开为RMI服务的EJB的并发使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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