Win a copy of Fixing your Scrum this week in the Agile 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
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

JNDI, EJB-jar

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

I'm a little bit confused about how the entries in the ejb-jar.xml are processed.

1 - Do we still need this file (ejb-jar.xm) in a ejb application ?
2- If so, is it the container that translates the entries from the ejb-jar.xml to jndi entry automatically ?
3- Is it all the entries of the ejb-jar.xml that are translated to a jndi entries ?

Thanks
 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mamadou,

i'll try to answer some questions:

1 - Do we still need this file (ejb-jar.xm) in a ejb application ?



Here is excerpt from Mikalai Zaikins Study Guide:


The ejb-jar file must contain the deployment descriptor (if any) in the format defined in the Deployment Descriptor XML Schema. The deployment descriptor must be stored with the name META-INF/ejb-jar.xml in the ejb-jar file.

NOTE: The biggest difference with EJB 2.0 is that with the EJB 3.0 release the deployment
descriptor becomes optional.



2- If so, is it the container that translates the entries from the ejb-jar.xml to jndi entry automatically ?


If there exists a ejb-jar.xml file, then I think that it is the responsibility of the container to read in this file, override annotations and so to create jndi entries.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic