• 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
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!