Win a copy of Spring Boot in Practice this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Struts Plugin - Getting webapplicationcontext or service factory in struts plug-in class

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using spring and struts in my application.
I have wired all the service and dao beans in the application context xml, which gets loaded fine on application start up.

I want to fetch some values from database on start up into some variables of my constants file.
I am using struts plugin for this.
But i am not sure how do i get the service factory class inside plugin class. I can get webapplicationcontext inside myaction class as it extends DispatchAction.
But my plugin class just implements PlugIn interface of struts.

How do i get a service factory in the plugin on start up of the application.. ?
    Bookmark Topic Watch Topic
  • New Topic