[jboss-user] [Beginners Corner] - Re: Web Service - what needs to be in the .war?

PeterJ do-not-reply at jboss.com
Tue Oct 14 18:54:25 EDT 2008

If your web service is EJB-based, all you need is a jar file with the web service class.

Add two more annotations to the class:

  | ...
  | @javax.jws.Stateless
  | @org.jboss.wsf.spi.annotation.WebContext(contextRoot="/hello", urlPattern="/hello")
  | @WebService
  | public class HelloService {...}

And the contents of hello.jar:

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182251#4182251

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4182251

More information about the jboss-user mailing list