From previous messages, the only way I saw to do this was either:
-         to have another servlet that is loaded at startup which send's a request to your axis service and forces it to be initialised
-        or extend AxisServlet and override its init() function as follows:

package myPackage;

public class MyServlet extends AxisServlet {

    public void init() {

      //initialize Axis
      super.init();

      //do your own initialization here    
    }
}

Then change your web.xml like this:

  <servlet>
    <servlet-name>AxisServlet</servlet-name>
    <display-name>Apache-Axis Servlet</display-name>
    <servlet-class>
        myPackage.MyServlet
    </servlet-class>
    <load-on-startup>100</load-on-startup>
  </servlet>

Brian.



"Reinhard Nappert" <[EMAIL PROTECTED]>

15/09/2003 15:12
Please respond to axis-user

       
        To:        <[EMAIL PROTECTED]>
        cc:        
        Subject:        Invoke some initial steps, during the deployment.



Hi,

I'd like to perform some initial operations (quite expensive ones) during the deployment of my Web-Service (before any requests come in).

Is that possible?

Thanks
-Reinhard






******************************************************************************

The content of this e-mail may be privileged and/or confidential.
If you are not the addressee indicated in this message
(or responsible for delivery of the message to such person),
you may not copy or deliver this message to anyone. In such
case, you should destroy this message and kindly notify the
sender and [EMAIL PROTECTED] by reply email. Please
note that in such circumstances any review, dissemination,
disclosure, alteration, printing, copying or further transmission
of this e-mail and/or any file transmitted with it is prohibited
and may be unlawful. Please advise us immediately if you or
your employer do not consent to Internet email for messages
of this kind. The opinions, conclusions and other information
in this message are of the author and shall be understood as
neither given nor endorsed by Vodafone Ireland Limited
unless it is otherwise indicated by an authorised representative
independent of this message. Internet e-mail is
transmitted over the public internet over which Vodafone
Ireland Limited has no control. As such, there is no guarantee that
(i) this e-mail will be delivered within a reasonable time or at all
(ii) this e-mail comes from the purported sender
(iii) this e-mail has not been intercepted by a third party
(iv) the contents of this e-mail are unaltered from the time of
transmission. The presence of this footnote indicates that this
message (including its attachments) has been processed by an
automated anti-virus system; however it is the responsibility of
the recipient to ensure that the message (and attachments)
are safe and authorised for use in their environment.
Vodafone Ireland Ltd Directors: Peter Bamford Chairman (UK),
Pauline Best (UK), Paul Donovan Chief Executive (UK),
Gerry Fahy, Dermot Griffin, David Boorman, David Smithwhite(UK).
Registered in Ireland at MountainView, Leopardstown, Dublin 18.
Number 326967 VAT Reg No. IE6346967G

******************************************************************************

Reply via email to