File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "spring context loader" Watch "spring context loader" New topic

spring context loader

gopal g gupta

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
Resource resource = new FileSystemResource("beans.xml");
BeanFactory factory = new XmlBeanFactory(resource);
Vyas Sanzgiri
Ranch Hand

Joined: Jun 16, 2007
Posts: 686

You mean this :

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

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

Joined: Nov 06, 2011
Posts: 16
thanks miku.the problem is solved by your reply on my another post.......
I agree. Here's the link:
subject: spring context loader
It's not a secret anymore!