• 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
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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
 
reply
    Bookmark Topic Watch Topic
  • New Topic