Thanks Kamal for the quick reply,
Here is what i am confused about. While reading Java Web Services Up and Running I came across example for restful service using @WebServiceProvider annotation. But online when I look at some of the examples they are not using @WebServiceProvider annotation at all. Have a look at the following code, i have taken it from jersey website
http://jersey.java.net/nonav/documentation/latest/user-guide.html#d4e107
1 @Path("/myResource")
2 @Produces("text/plain")
3 public class SomeResource {
4 @GET
5 public
String doGetAsPlainText() {
6 ...
7 }
8
9 @GET
10 @Produces("text/html")
11 public String doGetAsHtml() {
12 ...
13 }
14 }
as you can see there is no @WebServiceProvider annotation.
So my understaning is @WebServiceProvider annotation is required only for Java SE and cannot be used in a web container?
Kindly help me understanding under what condition should or shouldn't we use @WebServiceProvider annotaiton.
regards,
gul