Yes, @WebContext is the way to. Unfortunately there is no Xml equivalent at the moment. You'll find that in the next release.
With 2.0.1 the class resides in:
jbossws-spi.jar
org/jboss/wsf/spi/annotation/WebContext.class
I have a problem in that my EJB jar deploys a web service, which uses the @WebContext annotation, but the context root points to the same context root of one defined in my war, both of which are packaged inside an EAR. If I deploy the EAR everything defined in the web.xml inside the war is accessible, but accessing the web service using the same context gets a 404 error.
For example, my webservice:
@WebContext(contextRoot = "/testWeb", urlPattern = "/SupplierAccessPort", authMethod = "BASIC", transportGuarantee = "NONE", secureWSDLAccess = false)
<jboss-web> <security-domain>java:/jaas/aipDBCheck</security-domain> <context-root>/testWeb</context-root> </jboss-web>
kr8m3r_78, please stop spamming a multitude of topics with the same question!!! You need ask only once, asking multiple times simply irritates the other readers of the forums.
This isn't spam, and there wasnt a "multitude" of posts. I posted the same question to two different threads. I didnt realize they get pushed to the top of the list. I was expecting my reply to be flagged to the person who posted the original message.