• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt about EJB annotation's attributes and resource annotation

 
Jhon Gonzales
Greenhorn
Posts: 22
Java Linux PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

i would like to know the difference between name, beanName, and lookup attributes of EJB annotations. Because when i call an EJB using the lookup attribute, also i can use name attribute for locate the EJB.

And when i'm using MDB, i can use mappedName attribute with resource (that is EJB's attribute too) annotation for locate JMS's resource factory and JMS's destination resources.

Regards.
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2531
112
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Edwin,

i would like to know the difference between name, beanName, and lookup attributes of EJB annotations. Because when i call an EJB using the lookup attribute, also i can use name attribute for locate the EJB.

Just have a look at my notes (ScbcdLinks, chapter 7).

And when i'm using MDB, i can use mappedName attribute with resource (that is EJB's attribute too) annotation for locate JMS's resource factory and JMS's destination resources.

The usage of mappedName is not specified by the EJB specs and therefore provider specific. So you should check your provider details on this.

Regards,
Frits
 
Jhon Gonzales
Greenhorn
Posts: 22
Java Linux PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, I understand it now, thanks.

By the way, I will buy your mock exam, I think that it would be helpful.

Regards.
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2531
112
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Edwin Gonzales wrote:
By the way, I will buy your mock exam, I think that it would be helpful.

Please do and don't hesitate to hit the discuss button when you have a question or doubt!

Regards,
Frits
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic