I have tried configuring something inside the web xml to point to the web service as mentioned in the examples:
<servlet>
<servlet-name>WsAPI</servlet-name>
<servlet-class>some.package.WsAPIImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>WsAPI</servlet-name>
<url-pattern>/SomeService</url-pattern>
</servlet-mapping>
But as I soon realized this only tries to instantiate WsAPIImpl, not access it as an EJB. Using the web.xml together with jboss-web.xml and the <virtual-host> tag was the only way I could figure out how to specify the host I want the webservice to be deployed or accessed on. As mentioned that does not work for EJB based web services.
Anyways, anyone have an idea of how to accomplish what I am mentioning?