• 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

ejb-link ??

 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ejb-link is an optional element. Then why an App Assembler would provide the ejb-link element in the DD? If the bean/app would work even without the ejb-link element then what's the need of providing this extra element i.e. if the (ejb-ref-name, ejb-ref-type, home, remote) are sufficient to get a bean home interface then why introduce one more link stuff. Any ideas?

May be I'm missing something.

Thanks
Deep
 
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
DTD fro DD is showing ejb-link as optional element as when Bean provider puts ejb-ref element in DD , he is not going to put ejb-link element in there.

However functinaly it does not make sence having run the application without having <ejb-link> element in ejb-ref, as the mapping wont be known.

Anybody to confirm this?

Gemini
 
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

If the bean/app would work even without the ejb-link element then what's the need of providing this extra element



Your application won't work if the ejb references are not properly resolved with ejb-link element. You get big fat NamingException when looking up using the reference.
 
Gemini Moses
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Kirti for you insight.

Deep,
I also notice on http://java.boot.by/bcd-guide/ch14.html --

A role-link element must be used even if the value of role-name is the same as the value of the role-link reference.

Thanks
Gemini
[ March 21, 2005: Message edited by: Gemini Moses ]
 
These are not the droids you are looking for. Perhaps I can interest you in a tiny ad?
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic