File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Application Frameworks and the fly likes Spring Containers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spring Containers" Watch "Spring Containers" New topic

Spring Containers

Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 629
Hi All,

I always thought spring had two containers.

2). ApplicationContext

Am I true?/ My friend keeps on saying that there is no container at all for spring.


Be Humble... Be Nice.
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Well, yes the BeanFactory and ApplicationContext can be considered a "container" but not like a web container or ejb container. a Container in such that it holds your instance of your Spring Beans inside a "glorified map" as I like to call it. It handles the lifecycle of your objects, like a container would do. But it isn't a monolithic object, so to speak, as say compared to a real full "container"

It is just symantics here that you disagree with your friend. His definition of container is not the same definition of container that you have. It really isn't about Spring itself.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Arjun Reddy
Ranch Hand

Joined: Nov 10, 2007
Posts: 629
Thanks for your reply mark.
I agree. Here's the link:
subject: Spring Containers
It's not a secret anymore!