Skip to Content
author's profile photo Former Member
Former Member

collocation support

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:



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jan 10, 2007 at 01:00 PM

    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,


    Add a comment
    10|10000 characters needed characters exceeded

    • 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,


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.