This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes Problem in injecting interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Problem in injecting interface" Watch "Problem in injecting interface" New topic
Author

Problem in injecting interface

sachin yadav
Ranch Hand

Joined: Nov 24, 2005
Posts: 156
Hi all,

I am working on a simple application in spring 2 and hibernate 3. I have a signin.jsp page whcih took two values and save them to database. Form gets submitted to controller which is SignInController and i have created a SignInDao interface and having it's implementation in SignInManager class, which has method "getHibernateTemplate().merge(signIn)" to delegate the saveing of data. I inject SignInDao in SignInController using setter injection and set transaction handeling in application context file. Now i am not been able to inject the SignInDAO interface as it's giveing me an erro while running on tomcat as



I am putting up here my controller, SignInDAO interface and SignInManager which is the implementation of SignInDAO along with application context file.

login-servlet.xml



SignInController.Java



SignInDAO.Java



SignInManager.Java



Can somebody please suggest where am i wrong.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem in injecting interface