wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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
 
wood burning stoves
 
subject: Confused about mappedName
 
Similar Threads
access jms queue from different servers
MDB : destinationName property for JMS queue at runtime
accessing local session bean from a message driven bean
What is the correct way to create a MDB?
Deploy MDB on Glassfish