You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Pe...@swisscom.com on 2002/08/22 09:31:54 UTC

Service Preload at Axis Startup

Hi,
 
I did not find any information about that in the Docs, but perhaps I
just missed it.
Is there a way to tell Axis to preload a service at startup, i.e. to
some initialization at the time axis is loaded?
I need to have a server which get information from another server to
start receiving this information all the time, not just after a service
method is called the first time.
 
Thanks for any hint :-)
 
Peter

----------------------------------------------------------------------
Peter Balsiger                                  Tel.: +41-31-342 76 80
Swisscom Innovations                            Fax.: +41-31-342 99 03
Ostermundigenstr. 93               e-mail: peter.balsiger@swisscom.com
3050 Bern

 

 

RE: Service Preload at Axis Startup

Posted by Robert Herold <he...@cotagesoft.com>.
MessageYou could use create a new initialization servlet, setting the
<load-on-startup>1</load-on-startup> sub-element of the <servlet> element in
your web.xml to specify that this servlet runs early enough to do your
initializations.

-- bob


  -----Original Message-----
  From: axis-user-return-6569-herold=cotagesoft.com@xml.apache.org
[mailto:axis-user-return-6569-herold=cotagesoft.com@xml.apache.org]On Behalf
Of Peter.Balsiger@swisscom.com
  Sent: Thursday, August 22, 2002 12:32 AM
  To: axis-user@xml.apache.org
  Subject: Service Preload at Axis Startup


  Hi,

  I did not find any information about that in the Docs, but perhaps I just
missed it.
  Is there a way to tell Axis to preload a service at startup, i.e. to some
initialization at the time axis is loaded?
  I need to have a server which get information from another server to start
receiving this information all the time, not just after a service method is
called the first time.

  Thanks for any hint :-)

  Peter
  ----------------------------------------------------------------------
  Peter Balsiger                                  Tel.: +41-31-342 76 80
  Swisscom Innovations                            Fax.: +41-31-342 99 03
  Ostermundigenstr. 93               e-mail: peter.balsiger@swisscom.com
  3050 Bern