posted 11 years ago
Hi ,
This is my interface:
These are my two implementation classes :
And this is my service class :
my Main method :
In my master-quiz.xml file I have written :
<bean id = "springQuizMaster" class ="com.services.SpringQuizMaster"></bean>
<bean id = "strutsQuizMaster" class = "com.services.StrutsQuizMaster"></bean>
<bean id = "quizMasterService" class = "com.services.QuizMasterService" init-method = "init" destroy-method = "destroy" autowire="byName">
When I use :
<constructor-arg ref="springQuizMaster"/> instead of autowire attribute it runs perfect
but while using autowiring it fails.
Can anyone help me out?
Thanks