Win a copy of Java Persistence with Spring Data and Hibernate this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Jeanne Boyarsky
Saloon Keepers:
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Piet Souris
Bartenders:

ejb-ref and ejb-local-ref

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ...
 
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you .... I did miss it ...
 
Replace the word "snake" with "danger noodle" in all tiny ads.
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
reply
    Bookmark Topic Watch Topic
  • New Topic