Solved

method call in spring-config.xml file

Posted on 2011-03-11
2
752 Views
Last Modified: 2012-05-11
Hi,

In spring-config.xml can we call a method on the dao say ProductDAO (which return a list) to use that same list iin other bean id definition within same spring-config.xml. ANy suggestions, ideas, sample code, resources, links highly appreciated. Thanks in advance.
0
Comment
Question by:gudii9
2 Comments
 
LVL 92

Accepted Solution

by:
objects earned 250 total points
ID: 35107822
you would use something like this:

     <property name="list" value="#{productDao.someList}" />
0
 
LVL 20

Assisted Solution

by:Sathish David Kumar N
Sathish David  Kumar N earned 250 total points
ID: 35111535
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Weekend adv creator 3 51
hibernate example for saving data 19 52
maven module vs maven project 3 46
SequenceInputStream example 3 19
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This video teaches viewers about errors in exception handling.

840 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