Originally posted by Nikita Deshmukh:
I am using SCBCD exam study giuide. And so far I haven't seen any of ejb-ref and ejb-local-ref. What does it do and whose responsibility is it ?? meaning which role .. like bean provider or deployer etc ...
If the ejb1 uses ejb2, then ejb1 has to have an entry(ejb-ref for remote access to ejb2, ejb-local-ref for local access) in the dd that will refer to the ejb2.
the bean provider will start it by putting the ejb-ref/ejb-local-ref dd blocks, and some info that he knows, like <home>, <local-home>.
the application assembler, will make sure these ejb-ref/ejb-local-ref will be 'pointing' to ejb2, by using jndi-name(when ejb2 can be outside the ejb1's ear) or ejb-link(ejb2 is in same jar or ear as ejb1).