Win a copy of Murach's MySQL this week in the JDBC and Relational Databases 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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 ...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic