axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jung, Eric (Contractor)" <ej...@russellmellon.com>
Subject how to do one-time initialization
Date Fri, 16 Aug 2002 15:06:30 GMT
Hi,
I have some libraries I need to configure/initialize before my Axis web
services use them. What I've done is extend AxisServlet, override public
void init(), and then specify my subclass as the servlet in web.xml. Is
there a better way to do this, or is this normal?

  public class Servlet extends AxisServlet {

    public void init() {

      //initialize Axis
      super.init();
      //do initialization
    }
  }

Then in web.xml:
  <servlet>
    <servlet-name>AxisServlet</servlet-name>
    <display-name>Apache-Axis Servlet</display-name>
    <servlet-class>mypackage.MyServlet</servlet-class>
  </servlet>  

Thanks for your input,

Eric H. Jung
Contract Consultant
Russell/Mellon Analytical Services
1-617-382-1373
Everett, MA, USA
Latest publication:
http://www.amazon.com/exec/obidos/ASIN/1861005202



Mime
View raw message