User development,

A new message was posted in the thread "Call by value vs. call by reference":

http://community.jboss.org/message/522886#522886

Author  : Arbi Sookazian
Profile : http://community.jboss.org/people/asookazian

Message:
--------------------------------------------------------------
h3. 1) Where is this configured (i.e. which Jboss xml file)?  
h3. 2) what is the default?
 
*3) what is the recommendation for a clustered Seam/JSF/RichFaces application 
wrt this?*
 
/*******************************************************************************************************************************************/
h3. Performance note - Call By Value
 
The use of  call by value and marshalling is very inefficient. It typically 
means
method  invocations take 10 times the cpu. Why? Compare Call By Value with 
Call  By Reference
 
h4.  Call By Reference
1. caller does  ejb.someMethod()
2. invocation is passed through  ejb container
3. container does bean.someMethod()
4. result is returned to the caller
 
h4.  Call  By Value
1. caller does ejb.someMethod()
2. invocation is marshalled - the parameters are turned into  ObjectStream (a 
byte[])
3. container  with a different classloader unmarshalls - byte[] ->  java 
Objects - including classloading
4. invocation  is passed through ejb container
5. container does  bean.someMethod()
6. result is marshalled - the  return value is turned into ObjectStream
7. result  is unmarshalled using the caller's classloader - byte[] -> java 
Object
8. result is return to the  caller
 
The marshalling and unmarshalling uses a lot of cpu.
 
from: http://community.jboss.org/docs/DOC-9288

--------------------------------------------------------------

To reply to this message visit the message page: 
http://community.jboss.org/message/522886#522886


_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to