jQuery in Action, 3rd edition
The moose likes Spring and the fly likes spring classpathxmlapplicationcontext Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "spring classpathxmlapplicationcontext" Watch "spring classpathxmlapplicationcontext" New topic

spring classpathxmlapplicationcontext

Mathew Lee
Ranch Hand

Joined: Jun 08, 2009
Posts: 238

I would like to know while instantiating beanfactory why we use only classpathxmlapplicationcontext not other ones. What we use for ApplicationContext. What are the differences, similarities, uses of these two. Any ideas, suggestions, sample code, resources, links highly appreciated. Thanks in advance
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

You've been asking a lot of basic questions, which is not wrong, but I'd like to suggest you to take a book if possible. If not read the online documentation. This will help you grab the basics.

The ClassPathXmlApplicationContext (remember that Java is case-sensitive) is used to access an application context file which lies in the classpath. It is an implementation of the ApplicationContext. There are others, but this may be the most used.

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link: http://aspose.com/file-tools
subject: spring classpathxmlapplicationcontext
It's not a secret anymore!