cancel
Showing results for 
Search instead for 
Did you mean: 

collocation support

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Vlado
Advisor
Advisor
0 Kudos

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

Former Member
0 Kudos

Vladimir,

You are correct. It is an optimisation technique to achive better performance (check the PDF), which I think would be usefull for EJBs as well. This way the programmer do not need to explicitely use the local interface to optimise the performance.

Cheers,

Zsolt

adrian_goerler
Employee
Employee
0 Kudos

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