• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 776
  • Last Modified:

method call in spring-config.xml file

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
gudii9
Asked:
gudii9
2 Solutions
 
objectsCommented:
you would use something like this:

     <property name="list" value="#{productDao.someList}" />
0
 
Sathish David Kumar NArchitectCommented:
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now