wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "spring classpathxmlapplicationcontext" Watch "spring classpathxmlapplicationcontext" New topic
Author

spring classpathxmlapplicationcontext

Mathew Lee
Ranch Hand

Joined: Jun 08, 2009
Posts: 238
Hi,

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é
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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
 
Similar Threads
Declarative Usage of Application Contexts
how do i solve this error caused due to problem in spring initiation on tomcat
Problem in code
[beans.xml] cannot be opened because it does not exist
Problem using hibernate