ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Scheduling Jobs in a Java Web Application
Subject:   Article's code?
Date:   2006-04-20 05:26:53
From:   chrislhardin
Response to: Article's code?

You only need to implement PlugIn and two methods, destroy and init.



import javax.servlet.ServletContext;
import javax.servlet.ServletException;

import org.apache.struts.action.ActionServlet;
import org.apache.struts.action.PlugIn;
import org.apache.struts.config.ModuleConfig;

public class ExamplePlugIn implements PlugIn {




/**
* @see org.apache.struts.action.PlugIn#init(org.apache.struts.action.ActionServlet,
* org.apache.struts.config.ModuleConfig)
*/
public void init(ActionServlet servlet, ModuleConfig config)
throws ServletException {


}




/**
* @see org.apache.struts.action.PlugIn#destroy()
*/
public void destroy() {

}


}



1 to 1 of 1
  1. Article's code?
    2006-04-20 09:23:53  jorgesalido [View]

1 to 1 of 1