?
Solved

Spring Dependency Injection in non-spring manged bean..

Posted on 2010-09-18
3
Medium Priority
?
337 Views
Last Modified: 2012-08-13
Hi All,
I am quite new to Spring DI. We have two classes, PhysicalService and PhysicalDAO. Physical service instance is being created dynamically using some service handler, hence it is not spring managed bean. Physical DAO instance is managed by Spring Beans. Is there any way by which I can inject physical dao in physical service?
0
Comment
Question by:rakesh_nitj
2 Comments
 
LVL 20

Accepted Solution

by:
Sathish David  Kumar N earned 500 total points
ID: 33714231
You can define in the dispatcherservlet.xml
then you can create setter method in your class create construtor in ur class
0
 
LVL 61

Expert Comment

by:Kevin Cross
ID: 36929496
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
A solution for Fortify Path Manipulation.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question