wood burning stoves
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

Spring context file

Sreedevi Vinod
Ranch Hand

Joined: Jan 17, 2005
Posts: 117

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.

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
It's not a secret anymore!