I'm Andrea Fabris from italy, and i'm pretty new to WS in general and to Axis in particular.
I'd like to write some WS that could be configurable through a conf file. I'd like to specify the location of the configuration file in the web.xml descriptor of Axis, so i can access the information through Axis engine.
Now, in the axis wiki, i found that i have to use the MessageContext class to access the servlet context (an so the web.xml).
I tried to use a static block to initialize my WS and read my properties, but i got a NoClassDefFoundError. So i used the ws constructor, and all works now.
I don't like this solution because the constructor is invoked every time axis catches a request for that ws, while the init job has to be done only once (right now every time the ws is invoked, the initialization is performed doing the same job every time).
I think i got the NoClassDefFoundError, because in the static block the MessageContext is not yet defined (it's not clear from the architecture guide).
Is there a better solution to acess the web.xml than using the MessageContext in the ws constructor?
I have to change my mind about using the web.xml to achieve the "only once init"?
Thanks for your help Regards Andrea Fabris