If you deploy Java Service Endpoints in a two different wars, use jboss-web.xml to set the <context-root> element.
If you deploy EJB Service Endpoints in two different jars, use jboss.xml to set the <port-component-uri> element.
i'de like to do something similar, but in my case i want to have multiple instances of the same application as we a providing our product as a hosted solution and having multiple jboss instances all on their own ip address would seam rather wasteful
would your suggestions about the confilg files help us and if so what do we need to change on the client ?
I deploy each instance of the same application in a different context (configured in jboss-web.xml) , e.g. Instance1-appl.war and Instance2-appl.war
<jboss-web> <context-root>app/instance1/</context-root> <virtual-host>myhost</virtual-host> </jboss-web>
<jboss-web> <context-root>app/instance2/</context-root> <virtual-host>myhost</virtual-host> </jboss-web>