By enabling pass by reference, the parameters of the method are not copied to the stack with every remote call, which can be expensive.
通过引用传递,方法的参数没有被复制到每个远程调用的堆栈中,而这个复制过程可能是代价高的。
By using this knowledge, you can pass in a parameter to the read method or the readline method to control how many characters are read.
通过使用这个知识,可以向read或readline方法传递一个参数,控制读取的字符数。
To summarize, the ORB pass by reference option basically treats the invoked EJB method as a local call (even for EJBs with remote interfaces) and avoids the requisite object copy.
总的来说,OR B通过引用传递选项基本上将调用的EJB方法作为本地调用对待(甚至对于带远程接口的EJB),并避免必需的对象复制操作。
应用推荐