There is a method in the EJBObject interface that says EJBHome getEJBHome(), I'm not able to understand how we can do this. How will the bean give a reference to its Home...Please anyone explain me.
Thanks in advance.
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Think about it, you got reference to EJBObject(component interface) through EJBHome. now you are in the middle of executing business method in that bean using EJBObject. Now think that you have lost reference to your EJBHome and you want to create another bean to do someother business operation. In this scenario, if this helper(getEJBHome()) method isn't there, again you need to go through JNDI to get reference to EJBHome. Intead you can use getEJBHome() method. This is the reason why? EJBObject has this getEJBHome() method.
Thanks for the explanation, could you please explain it using an example as I'm just a beginner in EJB. I would be very thankful to you if you can give me an exampled version of your above explanation.
Thanks in advance.
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!