aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Confused about mappedName Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Confused about mappedName" Watch "Confused about mappedName" New topic
Author

Confused about mappedName

bernard savary
Ranch Hand

Joined: Jan 09, 2008
Posts: 91
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Confused about mappedName