Solved

method call in spring-config.xml file

Posted on 2011-03-11
2
748 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Passing list of object to Oracle Database Procedure 3 59
Core Java. What output will be and why ? 6 64
bitbucket vs gitbucket 3 55
JList custom Cell Renderer refresh 15 53
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

930 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now