• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

relation between ejb--jar.xml and web.xml?

 
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
web.xml has <ejb-ref> and <ejb-local-ref> tags. which way we can use them?.
mostly in books they mentioned about ejbb-jar.xml only?
 
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Yamini,

web.xml has <ejb-ref> and <ejb-local-ref> tags. which way we can use them?.
mostly in books they mentioned about ejbb-jar.xml only?



In ejb-jar.xml, <ejb-ref> and <ejb-local-ref> declare a reference to another enterprise bean�s home and local home, respectively. The referencing bean can then lookup for those homes using JNDI, under the java:comp/env context.

Now when a Web component such a servlet (and not another bean) wants to reference an EJB, the reference is declared in web.xml, using exactly the same syntax (ejb-ref or ejb-local-ref) .

Regards,

Phil.
[ August 17, 2004: Message edited by: Philippe Maquet ]
 
Our first order of business must be this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic