How to change endpoint location generated by wsprovide?
Issue
I executed wsprovide with a EJB class[1] and the EJB class name is used to the generated endpoint location[2]. How to change endpoint location generated by wsprovide?
[1]
@Stateless
@WebService(
name = "HelloWorldEjb3WebService",
targetNamespace = "http://examples.com/servers/jboss/samples/examples/webservices/basic/statelessSession/ejb3",
serviceName = "HelloWorldEjb3Service")
public class HelloWorldEJB3 implements HelloWorldInterface {
public String sayHello(int num, String s) {
System.out.println("sayHello in the HelloWorldEJB3 has "+
"been invoked with arguments " + s + " and " + num);
String returnValue = "This message brought to you by the "+
"letter "+s+" and the number "+num;
return returnValue;
}
}
[2] http://localhost:8080/xxx/HelloWorldEJB3
Environment
- JBoss Enterprise Application Platform (EAP) 5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.