Hi,
I am currently studying for the SCBCD exam with Headfirst
EJB and have gotten a little confused with Entity Beans and their interfaces...
Although I'm sure that there's much I still don't understand, I have started putting together a small project to make sure that I understand the aspects of creating Entity Beans and noticed in the ejb-jar.xml that for an entity bean, the interfaces are defined in tags labelled <local-home> and <local>.
This got me wondering whether I should be creating a local component and home interface for my bean or a remote one. Another book I was reading suggested that as Entity Beans are most likely to be called by Session Beans that are probably going to be local to the Entity Bean, then
you should use Local interfaces rather than remote (as this would be more efficient).
Is there any guidelines/recommendations on this, as it does seem a bit odd that the DD has these tags for both Remote and Local interfaces.
Can anyone offer any insight?
Thanks,
Mike
