Originally posted by Parvathi G:
Hi,
When we register the home reference in the JNDI, it is the stub reference not the home object reference. Is it like, if we are refereing to any remote object reference in JNDI then we need to do a narrow casting instead of normal casting. Please correct if I am wrong any where.
Thanks & Regards,
Parvathi.
Where did you got the info that the home reference/object is registered in the JNDI? Is it in the spec.kindly mention the page number.Did you assumed it is home because of the client code?
When we are refering to any remote and if it is rmi then normal casting works.The reason for narrow casting here is for not only casting but also for doing certain other things.