• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

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

 
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
There's a hole in the bucket, dear Liza, dear Liza, a hole in the bucket, dear liza, a tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic