• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

@Resource only on @Target(value={TYPE,FIELD,METHOD})

 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Again referring Enterprise Java Beans 3.pdf (by Frits, page number 2-16). There is a code block in which @Resource is used within a business method. But, it is not allowed according to @Resource annotation as the @Target can only be {TYPE,FIELD,METHOD}. You get compilation error if used. Has anybody noticed this?



 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2423
95
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, that is a mistake. Thanks for pointing that out.

I will change that over the weekend.

Regards,
Frits
 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Frits, appreciate that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic