Mayssam,

1. copy-by-value is not only for <entity-deployment>.
   You can also set it in <session-deployment>.
2. It means that you are asking the container whether
   or not to clone parameters in EJB calls. The container
   clones all parameters by default because all calls
   are potentially remote calls and in remote calls,
   call by reference (the calling convention that java
   uses for parameter passing) has no meaning. But the
   fact is that call by reference has a great performance
   gain. So, Orion lets you to specify that the container
   should pass parameters by reference.
3. It's obvious that copy-by-value="false" have meaning 
   only if the caller and callee are both running in the 
   same JVM.
4. It will cause problems in your application if you have
   relied on the fact that parameters are passed by 
   value. For example if the callee changes the value of 
   parameters. In this scenario changes are reflected in
   actual parameters caller supplied. I think it's better
   to use immutable objects as parameters for remote
   calls to be sure that no changes will happen. I think
   remote objects has no problems if passed as parameters
   in this scenario. (If incorrect someone correct me,
   please)

Regards,
Roozbeh/

P.S. (for Mayssam)
Aaghaa joon khob mioomadi az oossaat 
miporsidi, chera mailing list? ;)

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Mayssam
Sayyadian
Sent: Saturday, September 29, 2001 2:46 PM
To: Orion-Interest
Subject: <entity-deployment> in orion-ejb-jar.xml


dear all,
i was studying orion-ejb-jar.xml and i found copy-by-value as an
attribute of <entity-deployment>. according to orion-ejb-jar.xml.html
(/docs/) setting this to false improves the performance of the entity
beans. WHEN can i do this? if my beans have no setter methods in their
remote interface mean that i can ask the container not to copy-by-value
my beans? many thanx.

--MS.



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Reply via email to