Re: Passing values to class constructors

2006-05-09 Thread Dies Koper
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 r

Re: Passing values to class constructors

2006-05-09 Thread Richard Gregory
Hi Josh, I have a properties file which is read at run time. I put the file in my WEB-INF/classes directory and access it like this: HttpServlet srv = (HttpServlet) MessageContext.getCurrentContext().getProperty(HTTPConstants.MC_HTTP_SERVLET); ServletContext context = srv.getServletContext()

Re: Passing values to class constructors

2006-05-09 Thread Fabian Linz
Sorry. It seems you use Axis and not Axis2 (as I somehow assumed). So there is no service.xml or service archive in your case. Fabian Josh Potter wrote, On 09.05.2006 16:11: I should probably go into more detail. I am extremely new to this. So far I have more or less followed the documentati

Re: Passing values to class constructors

2006-05-09 Thread Josh Potter
I should probably go into more detail. I am extremely new to this. So far I have more or less followed the documentation to get stuff up and running. I have tomcat installed with axis copied over to the webapps directory of tomcat. I have my class copied over to the classes section of WEB-I

Re: Passing values to class constructors

2006-05-09 Thread Fabian Linz
Hi Josh, > would like to pass the location of the config file to the service when it starts so it can set up the appropriate connections From where do you want to pass the information? From the service.xml of the service? If so you can use parameters. See section 6 in http://www.developer.co

Passing values to class constructors

2006-05-09 Thread Josh Potter
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