views:

10

answers:

0

I know I can use the @InstanceResolverAnnotation to define which InstanceResolver will be used by a certain service, like it is explained in this article:

@Retention(RetentionPolicy.RUNTIME)  
@Target(ElementType.TYPE)  
@Documented  
@InstanceResolverAnnotation(MyResolver.class)  
public @interface MyWs {  
}  

// Now annotate the service class with above-mentioned annotation  
@WebService(endpointInterface = "com.vinodsingh.Address")  
@MyWs  
public class AddressImpl implements Address {  
    . . .  
}  

Now, I wonder if there is a way to define this only once to all the webservices (annotated with @WebService) in a Web application?