Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejb-ref and ejb-local-ref

 
Nikita Deshmukh
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ...
 
Jesus Angeles
Ranch Hand
Posts: 2068
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ...


Curious, the index (and table of contents) seems to have skipped that one...
You probably flew just right by it - Chapter 2 page 41-43 "EJB References"
 
Nikita Deshmukh
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you .... I did miss it ...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic