Solved

loading spring beans in order

Posted on 2011-09-14
2
532 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

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

Suggested Solutions

Title # Comments Views Activity
Modeling a class in java 5 67
eclipse compiler vs Installed JREs option 3 112
thymeleaf natural templating vs JSP 2 165
jsp insert to database example 2 65
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
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…
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.

726 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