I'm trying to figure out the simplest way to communicate a configuration parameter to a web service. In this case, it's a directory location. I've done a lot of searching, but I'm not clear on how to achieve this. I'm using Tomcat 5.028, Axis 1.4.
I'm thinking about adding something to web.xml, either this:
Access to the context param is possible through servletcontext. In JAX RPC service endpoint, (i.e which implements the servicelifecycle), init method has the context object,which can be typcasted to servletcontext.
The parameter can be obtained from that
One More question 1. You have web.xml entries, you have code for accessing webservices 2. Does your webservice run in the same app server as client?