wood burning stoves 2.0*
The moose likes Spring and the fly likes spring context loader 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 context loader" Watch "spring context loader" New topic
Author

spring context loader

gopal g gupta
Greenhorn

Joined: Nov 06, 2011
Posts: 16
i am using following code in my servlet and it works but now i want to replace this code with spring context loader so what changes i have to made in my servlet and beans.xml please suggest
code:
Resource resource = new FileSystemResource("beans.xml");
BeanFactory factory = new XmlBeanFactory(resource);
Vyas Sanzgiri
Ranch Hand

Joined: Jun 16, 2007
Posts: 686

You mean this : http://static.springsource.org/spring/docs/2.5.x/reference/beans.html#context-introduction


===Vyas Sanzgiri===
My Blog
Miku Ranjan
Ranch Hand

Joined: Oct 11, 2011
Posts: 98
Hi,
Are you using spring for web application or desktop application.
gopal g gupta
Greenhorn

Joined: Nov 06, 2011
Posts: 16
thanks miku.the problem is solved by your reply on my another post.......
 
jQuery in Action, 2nd edition
 
subject: spring context loader
 
Similar Threads
[beans.xml] cannot be opened because it does not exist
how to use spring context loader
unable to integrate my dao classes with spring
Classpath issue: class path resource [beans.xml] cannot be opened because it does not exist
FileNotFoundException