on 01-10-2007 12:19 PM
Dear All,
Is there any collocation support in the Java EE5 server? I mean that I do not need to call the local interface directly to achieve better performance when the caller and the called (client-server) are on the same addrespace. I know that CORBA implementations support collocation:
http://www.research.ibm.com/Middleware2000/WiP_Papers/wang.pdf
http://www.fpx.de/fp/Uni/Diplom/node24.html
Thanks,
Zsolt
Hi Zsolt,
Can you elaborate a bit?
Are you talking about EJBs?
Am I getting you right that you want to always call the remote interface and rely on the framework to automatically detect and replace that with a local invocation when the caller and the callee reside on the same server (JVM)?
Best regards,
Vladimir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Zsolt,
on a local interface parameters are passed by reference wehereas on a remote interface parameters are passed by value (using (possible custom) serialization). These techniques are semantically different.
The receiver of a parameter passed by value on a remote interface could rely on the fact that he receives a <i>copy</i> and can freely modify the parameter received.
Therefore we cannot perform the suggested optimization, I am afrraid.
Best regards,
Adrian
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.