[
https://issues.apache.org/jira/browse/OPENEJB-1431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12996546#comment-12996546
]
Ed Staub commented on OPENEJB-1431:
-----------------------------------
How's this:
The local-copy option controls whether Remote interface arguments and results
are always copied.
openejb start --local-copy=true (default)
Remote interface business method arguments and results are always copied (via
serialization), which is compliant with the EJB 2.0 standard.
openejb start --local-copy=false
Remote interface business method arguments and results are copied only when the
client is in a different JVM. Otherwise, they are passed by reference - as if
it were a Local interface. This is faster, of course, but non-compliant with
the EJB 2.0 standard.
Local interfaces are not affected; their arguments and results are passed by
reference and never copied.
-Ed
> openejb.localcopy does nothing like what's described in docs
> ------------------------------------------------------------
>
> Key: OPENEJB-1431
> URL: https://issues.apache.org/jira/browse/OPENEJB-1431
> Project: OpenEJB
> Issue Type: Bug
> Components: documentation
> Affects Versions: 3.1.4
> Reporter: Ed Staub
>
> The doc on http://openejb.apache.org/3.0/startup.html says that when system
> property openejb.localcopy is false, it:
> "Instructs the container system to not marshal (copy) calls between beans.
> The container system as will pass parameters and return values without
> copying or marshalling as is required for EJB 2.0 Local interfaces."
> See org.apache.openejb.core.ivm.BaseEjbProxyHandler.java. LOCAL interfaces
> are not affected at all - they ALWAYS pass by reference. When localCopy is
> set to false, REMOTE EJB args/results are passed by reference when in the
> same JVM.
> I'm guessing this works as designed - it's the doc that's wrong. But that's
> just a guess!!!
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira