Win a copy of Murach's MySQL this week in the JDBC and Relational Databases 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
  • 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

Confused about mappedName

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ranchers,
Ive been reading the EJB in action , and I am very confused about the use of mappedName attribute in different annotations . they say it could be used in @EJB , @Resource , @Stateful , @Stateless , @MessageDriven.
As I understand it specifies the gloabl JNDI name of the bean/resource.For example if say @Stateful( mappedName ="GlobalName") public class ...
and I reference the bean in another class like @EJB(name="somerefname" mappedName="GlobalName") then at deployment time there is mapping done between ENC ref java:comp/env/somerefname and global JNDI name "GlobalName" in a server specific xml file .In case of @MessageDriven it is mentioned that the mappedName specifis the JNDI name of the destination.I dont understand this because we already have a ActivationConfigProperty(propertyName="destName" , ..)
ActivationConfigProperty(propertyName="destType" , ..)
to specify the JNDI name of the queue .
Can soemone explain this please
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic