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 Scott Melby <me...@turnkey-technology.com> on 2002/11/08 13:21:07 UTC
Service initialization
Hello -
I am implementing a web service that needs to access a database to retrieve
information. I would like to connect to the database once at startup, then
handle incoming requests using existing connections for better
performance. I have accomplished this by deploying with application
scope. However, I notice that my service does not get instantiated until
the first request is sent to it. I would like (if possible) to have my
service startup when tomcat/axis is started. However, I have not been able
to find any service parameter that allows me to do this. Any help is
greatly appreciated. BTW: I am running axis 1.0.
Thanks
Scott
Re: Service initialization
Posted by Steve Loughran <st...@iseran.com>.
----- Original Message -----
From: "Scott Melby" <me...@turnkey-technology.com>
To: <ax...@xml.apache.org>
Sent: Friday, November 08, 2002 4:21 AM
Subject: Service initialization
I would like (if possible) to have my
> service startup when tomcat/axis is started. However, I have not been
able
> to find any service parameter that allows me to do this. Any help is
> greatly appreciated. BTW: I am running axis 1.0.
You can add an extra servlet/listener to the webapp and have it start
caching connections. To add auto-service load to axis would mean yuo'd have
to make changes to axis
-steve