Hello Josh,
Database setup processing usually goes into the init(Object) method,
clean-up processing goes into the destroy() method.
The instance passed to you by the init method is a
ServletEndpointContext, which you can use to get to the ServletContext
with its getInitParameter method to read property values you specified
in the web.xml descriptor.
Axis will call your init(Object) method if your impl class implements
the ServiceLifecycle interface.
Regards,
Dies
Josh Potter wrote:
Greetings,
I have been searching for a few days now and cannot figure out how to
pass a value to the constructor of my class or web service. My
situation is like this, I have a config file that I want to load that
holds database connection settings. My service scope will be
Application. I would like to pass the location of the config file to
the service when it starts so it can set up the appropriate connections
to the database based on the values in the config file. If any more
information is needed I would be happy to provide.
Thanks,
Josh Potter