[英]Remote EJB call vs Local EJB call performance in same JVM
I was trying to find out if there is any difference when I am calling a service through its local interface / remote interface in performance within the same JVM. 我试图找出通过本地接口/远程接口调用服务时,在同一JVM中的性能是否存在任何差异。
Based on this article: http://www.onjava.com/pub/a/onjava/2004/11/03/localremote.html?page=last&x-showcontent=text Local call should be a bit faster especially in cases for Collection of Objects. 基于本文: http : //www.onjava.com/pub/a/onjava/2004/11/03/localremote.html? page = last&x-showcontent= text本地调用应该更快一些,尤其是在进行Collection的情况下对象。
Based on my testing I could not find a big difference between the two however maybe I was trying it with small amount of data. 根据我的测试,我发现两者之间没有太大区别,但是也许我尝试使用少量数据进行尝试。
But anyway I would like to know if it has any downfall to call a service through its remote interface when we are in the same JVM because in my project we are generating both local/remote interfaces however there are no real remote calls, the client and the service is within the same JVM and I am thinking about cleaning up the mess and removing the unnecessary generated remote views because people started to use both without reason. 但是无论如何,我想知道当我们在同一个JVM中时通过它的远程接口调用服务是否有任何失败,因为在我的项目中,我们正在生成本地/远程接口,但是没有真正的远程调用,客户端和该服务位于同一JVM中,我正在考虑清理混乱并删除不必要的生成的远程视图,因为人们开始无故使用这两种视图。
Thanks! 谢谢!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.