In general, the context-root of the web service will be the name of the jar file the stateless bean is deployed in. So change the name of the jar file and the context-root of the web service is changed accordingly. in general, the alias portion is determined by the name of the ejb in the ejb-jar.xml file. Change the name here, and make sure that webservices.xml references it correctly and it will change the alias of the web service.
I am not seeing that. The name of the ejb jar file is "sitereg-ejb-1.0-SNAPSHOT.jar" and the name of ear file is "SiteRegistrationService-1.0-SNAPSHOT.ear".
Also I am using JAX-WS and EJB3. So I don't have ejb-jar.xml and webservices.xml.
Sorry, forget all I said in my first post. To set the context root include jboss.xml in your jar file with the following inside it:
<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.0//EN"
The alias portion should be the name of the endpoint class. So if your endpoint class is named yyyy.java, then your web service url will be:
I don't know of a way to change the alias portion from being the name of the endpoint class.