-
1. Re: How is the service URL constructed
jopere Jun 8, 2007 9:28 AM (in response to rphadnis)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.
http://somehost/context-root/alias
John -
2. Re: How is the service URL constructed
rphadnis Jun 8, 2007 2:01 PM (in response to rphadnis)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. -
3. Re: How is the service URL constructed
jopere Jun 8, 2007 3:59 PM (in response to rphadnis)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"
"http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd">
<context-root>xxxx</context-root>
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:
http://somehost/xxxx/yyyy
I don't know of a way to change the alias portion from being the name of the endpoint class. -
4. Re: How is the service URL constructed
thomas.diesler Jun 18, 2007 5:13 PM (in response to rphadnis)As of jbossws-2.0.0 this is described here
http://jbws.dyndns.org/mediawiki/index.php/JBossWS_FAQs#How_do_I_know_what_endpoint_address_is_being_used.3F