This content has been marked as final.
Show 2 replies
-
1. Re: AS5 - What is the point of setting /server/default/deploy/ear-deploy.xml's CallByValue=true?
ndipiazza Sep 6, 2012 9:28 AM (in response to ndipiazza)1 of 1 people found this helpfulI think I might have the answer to my own question.
I found this link: https://community.jboss.org/thread/110288
He wanted to use CallByValue = true because "The original EJB authors had assumed a call-by-value behavior - i.e., changes to param objects made inside a call would be reflected outside the call without returning the param objects."
-
2. Re: AS5 - What is the point of setting /server/default/deploy/ear-deploy.xml's CallByValue=true?
wdfink Sep 6, 2012 9:51 AM (in response to ndipiazza)From the EJB spec CallByValue=true because if you use remote interfaces this is required.
Most server optimize that and call by reference:
+ no serialization
+ less cpu and memory consumption
- change of parameter object attributes or return object attributes will be visible for both!
So it depends to the application whether it work or produce fuzzy logic.