Hi,
Hi I also implemented ServiceLifecycle, but my method "init(Object context)"
is never invoked.
What do I have to do for it?
How can I initialize my service / serviceendpoint?
I have to set some initialisation parameters for my service. They are in a
property file.
In my earlier services with JAX-RPC I set the path to this property file in
web.xml and got access through the servlet-context in the init-method.
For your question:
Alternative you can get the MessageContext with the annotation "@Resource"
like this:
@javax.annotation.Resource
private WebServiceContext context;
MessageContext messageConctext = context.getMessageContext();
But a typecast to "SOAPMessageContext" is also not possible.
greetings
Florian