• 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Doubt about EJB annotation's attributes and resource annotation

 
Greenhorn
Posts: 22
PHP Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Creator of Enthuware JWS+ V6
Posts: 3392
312
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
PHP Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 3392
312
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
That's a very big dog. I think I want to go home now and hug this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic