aspose file tools*
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
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "why to implement  BeanNameAware" Watch "why to implement  BeanNameAware" New topic
Author

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.
 
jQuery in Action, 2nd edition
 
subject: why to implement BeanNameAware