Solved

loading spring beans in order

Posted on 2011-09-14
2
528 Views
Last Modified: 2013-11-11
hi guys

One of the interview question was
I have 3 beans in my spring config file
<bean id ="bean2" ..>
<bean id ="bean1" ..>
<bean id ="bean3" ..>


How will i load the beans in this order
bean1 loads first
Then bean2  loads
Then bean3 loads

Any idea how i can do that?

thx.
0
Comment
Question by:royjayd
2 Comments
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 300 total points
ID: 36541232
0
 
LVL 20

Expert Comment

by:Sathish David Kumar N
ID: 36572753
you can do load file or other using lazy loading......

but that will give problem some times...
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
wordmultiple challenge 12 131
HashMap Vs TreeMap 12 60
eclipse buid path vs tomcat lib path 10 22
jboss wildfly 10.1 10 75
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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.

816 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

8 Experts available now in Live!

Get 1:1 Help Now