This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes why to implement  BeanNameAware Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "why to implement  BeanNameAware" Watch "why to implement  BeanNameAware" New topic

why to implement BeanNameAware

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

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

Save India From Corruption - Anna Hazare.
subject: why to implement BeanNameAware
Similar Threads
Hibernate + Spring + TimerTask = No Hibernate Session bound to thread
Not able to test AOP using AspectJ
OSGI : Exporting services defined by @Service annotation
Struts ExceptionHandler - configure using Spring
Confused about bean's lifecycle method chain