0

I am using quartz scheduler which runs after every 15 minutes . So the parameter 15(interval ) i am defining in ApplicationResource.properties file I have listener class defined as

public class QuartzSchedulerListener extends ActionSupport implements ServletContextListener

So in public void contextInitialized(ServletContextEvent context) in this method i am trying to get parameter value using ActionSupports -- getText() method

getText("INTERVAL_TIME");

but i am getting error

Can please somebody tell me whats going with the code or any other alternative way to access the properties of ApplicationResources file

Thanks in advance

JMohasin
  • 513
  • 2
  • 13
  • 35
  • i am not sure why you trying to use S2 Action support class here?? – Umesh Awasthi Jun 15 '12 at 07:09
  • @UmeshAwasthi I found the getText() seems to useful but i was wrong its giving me exception & i know this class used for actions , Please tell me what is other way to access properties? – JMohasin Jun 15 '12 at 07:11
  • one more thing which i am not sure, why you want to read this property since you can configure Scheduler for this triggering time, else i suggest you to read the property file as a resource in your Listner or least which is not recommend put that property in your custom quartz property file since Quartz tend to read this property file on server startup – Umesh Awasthi Jun 15 '12 at 07:15
  • where did you place the ApplicationResource.properties. can you post the error that you are having. – Uchenna Nwanyanwu Jun 15 '12 at 07:25

0 Answers0