• 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 Reference

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
when do we use Ejb Reference ?
How does the Ejb Refrence work?
thanks in advance.
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
EJB references are used in the ejb-jar.xml so that you can get a default initial context to lookup the bean, when both the caller and the callee beans are exiting on the same JVM.
Regards
Meka Toka
 
Author
Posts: 170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by meka toka:
Hi,
EJB references are used in the ejb-jar.xml so that you can get a default initial context to lookup the bean, when both the caller and the callee beans are exiting on the same JVM.
Regards
Meka Toka


This also allows you to abstract the name used in a beans code to look up another bean from the JNDI name with which that bean is deployed. You simply map the names via the EJB reference.
Cheers
Sam
 
Chenna Krishna
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the answers...
Do I still need JNDI to lookup the object?
rgds
Krishna
 
Sam Dalton
Author
Posts: 170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes you do.
Cheers
Sam
reply
    Bookmark Topic Watch Topic
  • New Topic