After I do a JNDI look up , what I get is a reference to the Home of EJB Object.
But when I do an API call on Home/Remote , how does it find the URL/port of the server ?
Thanks
J
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
RMI makes this possible. The local objects you get on the client side are called stubs and know how to look over the network for their remote counterpart through RMI/IIOP. Quoting Understanding Java RMI Internals:
I also suggest to check this very nice article (a bit old but still nice) on TheServerSide: Under the Hood of J2EE Clustering (starting from EJB clustering implementation). It covers more than your initial question but is very interesting.