File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: why to implement BeanNameAware
 
Similar Threads
Hibernate + Spring + TimerTask = No Hibernate Session bound to thread
Not able to test AOP using AspectJ
Confused about bean's lifecycle method chain
OSGI : Exporting services defined by @Service annotation
Struts ExceptionHandler - configure using Spring