Hello
We are using JBoss Enterprise 4.3 GA as our development server. We would like to know how
to achieve call-by-reference configuration in this version of the server. Previously we
had <container-invoker-conf> where Optimization attribute determines the behaviour
of the objects. Please see below taken from the JBoss prev version. I would like to know
how to achieve this in 4.3
-------------------------------------------
<container-invoker-conf> configuration of the container invoker.
There are several elements which can nest within container-invoker-conf, one of which is .
This controls the behavior of bean method calls within the Java VM in which jboss is
running. If the value of Optimized is "false" then the container will behave per
the EJB spec and all objects passed into and out of bean remote methods will be marshalled
over RMI regardless of whether the client is running remotely or in the same VM as jboss.
If the value of Optimized is "true" then objects passed between bean methods and
clients in the jboss java VM will be passed by reference rather than by value. This is
much more efficient (and can result in substantial performance improvements) but can
result in unexpected behavior. For example, if a bean has a member object and returns that
object from a get() method then the EJB-specified behavior is to make a copy of that
object which is returned over RMI to the caller. Therefore if the caller modifies the
returned object in any way she will modify the copy of the object. If Optimized is
"true" then the caller will modify the original object per se, rather than a
copy.
-----------------------------------
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205391#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...