user2357036
user2357036

Reputation: 13

Is JAX-RS also part of JDK distribution?

Is JAX-RS part of jdk distribution like JAX-WS which comes insider Java 1.6 standard?

If yes, what jdk version is required to run?

Upvotes: 0

Views: 148

Answers (1)

Paul Samsotha
Paul Samsotha

Reputation: 209004

No... it is part of Java EE. To use it you need either

  1. An implementation like Jersey, so that you can use it in a plain servlet container like Tomcat.

  2. Use a Java EE compliant server like Glassfish or Wildfly (JBoss), which already comes with an implementation.

If you want (need) to use Java 1.6, then if you want to go with option 1, use Jersey version 2.6 (If you're using Maven, see this post). If you want to go with option 2, then go with Glassfish 4.0 (not 4.1 or anything higher) or JBoss 7

If you can use any JDK version, then I would recommend using the latest versions of any of the above components.

Upvotes: 1

Related Questions