File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion 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.......
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: spring context loader