File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes Spring context file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spring context file" Watch "Spring context file" New topic
Author

Spring context file

Sreedevi Vinod
Ranch Hand

Joined: Jan 17, 2005
Posts: 117
hi,

My application uses Struts in the presentation layer and Spring in the business and data layers. My Struts actions have also been made Spring beans by registering them in the Spring context file and using the DelegatingActionProxy.

My Spring context file that wires the beans is now lying in the WEB-INF folder and referred in the struts-config file.

The application also has a scheduler component that does not need a presentation layer. How do I make the Spring context file to be accessible to this class also? Where will I load the context file, since adding it to WEB-INF will only make it accessible via Struts.

Thanks
Devi
Simon Baker
Ranch Hand

Joined: Sep 09, 2004
Posts: 57
I'm not sure whether this would be suitable in your case but you might like to look at Spring Job Scheduling support, which allows you to schedule jobs using either the JDK Timer (for simple scheduling) or Quartz (for more involved implementations). See Spring reference manual ch. 23: Scheduling and Thread Pooling.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring context file
 
Similar Threads
Benefits of Using Spring and Struts
AOP Not working with Spring 3 MVC application
Spring 3.0 Framework, CAS and EJB
JSP MVC JDBC
Using JSP&Servlets with Spring