The first step to use Jersey declarative linking features is to add a dependency to the jersey-declarative-linking JAR. If you use Maven for building a source, then the dependency to jersey-declarative-linking in pom.xml will look like the following:
<dependency> <groupId>org.glassfish.jersey.ext</groupId> <artifactId>jersey-declarative-linking</artifactId> <!-- Choose the right version --> <version>RELEASE</version> </dependency>