• 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

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
 
"I know this defies the law of gravity... but I never studied law." -B. Bunny Defiant tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic