Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

startup action in struts2

Christopher Cheng

2007-12-03

Replies:

In struts1, I have a few plugin to preconfigure some services such as
QuartzPlugIn during startup

public void init(ActionServlet actionServlet,
             ModuleConfig moduleConfig) {

    try {
       SchedulerFactory sf = new StdSchedulerFactory();
       Scheduler sched = sf.getScheduler();
       sched.start();
    }
    catch (Exception e) {
       e.printStackTrace(System.out);
    }
  }

In strtus2, do I have to write a new plugin in a seperate jar? Is there a
simpler way?




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.