Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why to implement BeanNameAware

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I have read why to implement BeanNameAware and override the setBeanName()
I still could not understand the use of implementing BeanNameAware


A code snippet :







My query is that typically this is what we will do when calling a DAO from a servlet

from my Servlet we would call




so where is the difference , am i missing something
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic