Hi, Thank you very much for your immediate reply. I do agree that Home Interface acts as a factory to produce Remote interface. But I don't understand the explanation that you had given for use of the "factory". Yes EJB instance will be used by a single user at a time. But can you please explain a bit more on that last line....?? Thank you very much in advance
Regards Yogaraj -----Original Message----- From: ���� [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 25, 2002 10:30 PM To: It, Cockpit (CAP, Contractor) Subject: Re: Home Vs Remote Interface! Home interface is used as a factory, which 's product is remote interface. Remote interface work like as the proxy to the Enterprice Bean's instance. If you want to invoke a enterprice bean, you don't need to know about remote object. You just must know the jndi name of the home object. And the home object will help you to product a remote object. Maybe you would ask why we should use the "factory". Don't forget the enterprice object is not used by single one in the same time. Without remote object, how can the system know which one instance of enterprice object is being used by you. >Dear friends, >I just had a question in my mind...Why do we need Home Interface as well as >Remote Interface in EJB? >I was trying to find an answer for this.... Mastering EJB by Ed Roman says >Home Interface is used to give Location Transparency >in the distributed environment....which I don't understand....? We use JNDI >lookup to find the Home Interface from the client right? >Using that Home Interface reference we then create Remote interface. We not >we straight away look for Remote interface and use it in >our client? > >Then Why do we need Two Interfaces in EJB? Where as in RMI We have only one >interface.... > >Please clarify..... > >Thanx and Best Regards > >Yogaraj > > > > >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Perfection should be our Goal >Excellence can be tolerated >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > >"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE >ADDRESSEE and may contain confidential and privileged information. >If the reader of this message is not the intended recipient, >you are notified that any dissemination, distribution or copy of this >communication is strictly Prohibited. >If you have received this message by error, please notify us >immediately, return the original mail to the sender and delete the >message from your system." > >=========================================================================== >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". David Chen [EMAIL PROTECTED] "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." ==========================================================================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".
