Remote vs Local Method Call Optimization
Hi Does anyone know if local/remote method calls from EJB to EJB are optimized on Orion. For example if Entity Bean A calls Entity Bean B and they are both located in the same app server (e.g. now a local call) then does orion optimize this call. What I mean is does orion know that the call is local and so does not go through all the remote call overheads. To me the EJB spec seems to indicate that this sort of optimization should be done. For example if Entity Bean A calls Entity Bean B then I have to put an EJB reference in the deployment descriptor. Now to me this is telling the container which EJBs you are calling and so at deployment time the container works out if a call from Entity Bean A is a remote call to Entity Bean B by checking if the two beans will be on the same app server. if the situation changes eg Entity Bean B is put on a different app server then they will have to be re-deployed at which point the optomisation can be changed. Make perfect sense to me, or am i missing some thing
Re: Remote vs Local Method Call Optimization
At 17:54 05.11.00 , you wrote: Hi Does anyone know if local/remote method calls from EJB to EJB are optimized on Orion. For example if Entity Bean A calls Entity Bean B and they are both located in the same app server (e.g. now a local call) then does orion optimize this call. What I mean is does orion know that the call is local and so does not go through all the remote call overheads. yes, orion optimizes these calls. snip/ (-) Robert Krüger (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt, (-) Tel: 06151 665401, Fax: 06151 665373 (-) [EMAIL PROTECTED], www.signal7.de
RE: Remote vs Local Method Call Optimization
Hi Robert how do you know this ? Also how does orion do this, will it just call methods normally in java when the Entity Beans are local. cheers -Original Message- From: Robert Krueger [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 05, 2000 7:08 PM To: Orion-Interest Subject: Re: Remote vs Local Method Call Optimization At 17:54 05.11.00 , you wrote: Hi Does anyone know if local/remote method calls from EJB to EJB are optimized on Orion. For example if Entity Bean A calls Entity Bean B and they are both located in the same app server (e.g. now a local call) then does orion optimize this call. What I mean is does orion know that the call is local and so does not go through all the remote call overheads. yes, orion optimizes these calls. snip/ (-) Robert Krüger (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt, (-) Tel: 06151 665401, Fax: 06151 665373 (-) [EMAIL PROTECTED], www.signal7.de
RE: Remote vs Local Method Call Optimization
At 20:42 05.11.00 , you wrote: Hi Robert how do you know this ? 1. I asked the orion guys 2. how else could it be that fast? 3. output of getClass() you'll get the wrapper class name that contains all the local stiff like db operations etc. Also how does orion do this, will it just call methods normally in java when the Entity Beans are local. it should at least keep pass-by-value semantics (i.e. deep-copy all parameters of bean invocations), otherwise it would violate the specs. however, I never really checked. robert cheers -Original Message- From: Robert Krueger [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 05, 2000 7:08 PM To: Orion-Interest Subject: Re: Remote vs Local Method Call Optimization At 17:54 05.11.00 , you wrote: Hi Does anyone know if local/remote method calls from EJB to EJB are optimized on Orion. For example if Entity Bean A calls Entity Bean B and they are both located in the same app server (e.g. now a local call) then does orion optimize this call. What I mean is does orion know that the call is local and so does not go through all the remote call overheads. yes, orion optimizes these calls. snip/ (-) Robert Krüger (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt, (-) Tel: 06151 665401, Fax: 06151 665373 (-) [EMAIL PROTECTED], www.signal7.de (-) Robert Krüger (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt, (-) Tel: 06151 665401, Fax: 06151 665373 (-) [EMAIL PROTECTED], www.signal7.de