I have 2 Ejbs: EjbA and EjbB
in EjbA call EjbB's method:
m1(Map m)
EjbA lookup EjbB and get remote interface(not local interface).but EjbA and EjbB are on the same server
in m1(Map m) I modified m by m.put("a",newvalue)
in EjbA,I can get newvalue by call this method.
I heard that if call ejb through remote interface,the parameter pass by value,through local interface, parameter pass by refrence(faster).
but why looks like in my case, it pass parameter by refrence even through remote interface?
-
pass by ref or value (3 messages)
- Posted by: zhang zhang
- Posted on: February 18 2005 17:27 EST
Threaded Messages (3)
- Optimisation by Colin Yates on February 19 2005 17:27 EST
- Optimisation by zhang zhang on February 20 2005 19:52 EST
- Optimisation by Perianayagam T on February 22 2005 01:03 EST
- Optimisation by zhang zhang on February 20 2005 19:52 EST
-
Optimisation[ Go to top ]
- Posted by: Colin Yates
- Posted on: February 19 2005 17:27 EST
- in response to zhang zhang
Some containers will automatically treat all EJBs in the same VM as local EJBs, thereby passing parameters by reference. -
Optimisation[ Go to top ]
- Posted by: zhang zhang
- Posted on: February 20 2005 19:52 EST
- in response to Colin Yates
Thank you.you cleared the fog.do you know if websphere or weblogic have such features? -
Optimisation[ Go to top ]
- Posted by: Perianayagam T
- Posted on: February 22 2005 01:03 EST
- in response to zhang zhang
It actually depends on the following
1. Bundling of the classes (Are the classes bundled in the same EAR file??)
2.Value of the Pass-By-Value tag for each bean.
3. JVM.
refer
http://e-docs.bea.com/wls/docs70/programming/classloading.html
regards
Perianayagam.T