Hi Rahul, References having nothing to do with local/remote calls. They are inroduced to make the code portable. Suppose you have a bean whose JNDI name is "MyBean" and suppose there were no references, then you will lookup thru JNDI name directly. Now at deployment time, if you find that this JNDI name is already being used, then you will have to change your code as well as the deployment descriptor. References help you here. If you define the references, you lookup thru references and and in the deployment descriptor you map the reference to the actual JNDI name on the server. So, in case the JNDI name is not available for you, you make the change in deployment descriptor alone. So it acts as a proxy only. Hope I was able to clear your doubts.
Regards, Rupesh. >From: Rahul Aras <[EMAIL PROTECTED]> >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> >CC: 'Rupesh' <[EMAIL PROTECTED]> >Subject: RE: ENC lookup problems >Date: Thu, 18 Apr 2002 12:01:34 +0530 > >Thanks a lot for this info , Rupesh. I did realise later after sending the >mail that I had missed making the entries in the web deployment >descriptors( >I was doing the lookups from the web tier). It has solved my problem but I >still need some clarifications regarding Local/Remote calls. > >In my deployment scenario , all the objects reside on the same host.I >really >dont know why EJBs were required here but we used it. We could have done >with normal java classes also ...but never mind...that's another issue. > >I haven't upgraded yet to EJB 2.0 ...am still on 1.1. I believe that the ><ejb-local-ref> tag that you mention here has been introduced from EJB 2.0 >onwards. So does this mean that if I wish to stick to the EJB 1.1 >specification (that is with the <remote> tags )and make lookups the >"java:comp/env...." way , then I am actually not achieving anything better >? > >Can you explain w.r.t EJB 1.1....what is the advantage of binding ejbs in >the internal namespace "java:comp/env.." over binding them in the global >namespace? (like the way I had done in my deployment descriptors). Would >lookups be treated as a Local call or a Remote call if all objects reside >in >the same machine though the EJB 1.1 deployment descriptor says <remote>? > >Regards, > >- Rahul > _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".