EJB Endpoint Interface - Is client 'in VM'?

一曲冷凌霜 提交于 2019-12-25 05:27:31

问题


As a beginner of SLSB EJB, I understand that accessing them locally (through Local Business Interface) is more efficient than remotely.

When an EJB is accessed through an Endpoint, is it being accessed remotely or locally?

This is in the context of accessing the EJB through JAX-RS.


回答1:


A webservice endpoint is neither local nor remote. It is its own client view.

That said, the overhead from remote is primarily due to marshalling/demarshalling arguments for pass-by-value semantics of parameters and return types. The webservice views will require the same, so you should expect slower performance than local, which uses pass-by-reference. Whether or not a webservice view is faster or slower than remote depends on the webservices and remoting implementations.



来源:https://stackoverflow.com/questions/12200247/ejb-endpoint-interface-is-client-in-vm

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!