web services - Deploying a WebService in glassfish with init parameters -
I have created a WebService using the JAX-WS API without this problem without the use of the service endpoint class. Runs.
Main (string agre []) {(...) MyService service = new MyService (); Service.setParam1 ("range = 100"); Service.setParam2 ("hello"); Service.setParam3 ("max-value = 10"); Endpoint endpoint = endpoint Make (service); Endpoint.publish ("http: // localhost: 8090 / ws"); (...)} Now, I want to deploy this service in glassfish. However, as I wrote in my example, I want to start my service with some parameters. How can I achieve this ?
OK, I finally got the answer: javax.xml.ws.WebServiceContext < Using the / code> was a solution. See this other answer
Comments
Post a Comment