I have an EAR without a WAR but with an EJB-JAR. One EJB inside the JAR exposes a service with @WebService. All works, but I don’t know how control the urlcontext of the exposed service. Now it’s something like:
http://jbossServer/myearnamepackage-myjarnamepackage/myEndoint?wsdl
I would like it to be:
http://jbossServer/myservice/myEndoint?wsdl
Thanks in advance.
You can set the context root of your web service with the following annotations in your ejb3 bean:-
@WebContext(contextRoot="/myservice", urlPattern="/myEndpoint")This should make the web service wsdl bind to
http://jbossServer/myservice/myEndpoint?wsdl