Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

why is it appropiate to use the attributes (name = "" and mappedname="")  RSS feed

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI
Please excuse me if these are dump questions.



why is it appropiate to use the attributes (name = "" and mappedname="") .This is what i mean to ask :

@Stateless(name="HelloFirstUser" mappedName="somename")
 
Musab Al-Rawi
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mappedName attribute is used with Remote EJBs (not local ones).
It is used to give your EJB a "global" name, this name is added to the JNDI and it allows components that are outside your application to access it and use it.

name attribute on the other hand, is used to give EJB a local name, components the belong to the same application that declare the EJB will use this name, they can also use the mappedName if you provided one.

I hope that helped.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Musab
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!