2011-01-05 8 views
2

ausführen Ich möchte Resteasy auf jdk 1.5 ausführen, aber es erfordert 1.6 statt. see this: schau dir die jdk-Version in der Kategorie "hängt von" an. Gibt es eine Möglichkeit, die Quellen mit jdk 5. auszuführen/zu kompilieren? Bitte helfen Sie.Können wir Resteasy auf jdk 1.5

Antwort

1

Ja Sie können Es ist Portable zu jedem App-Server/Tomcat, der auf JDK 5 oder höher läuft.

Eigenschaften

* Fully certified JAX-RS implementation 
* Portable to any app-server/Tomcat that runs on JDK 5 or higher 
* Embeddedable server implementation for junit testing 
* Client framework that leverages JAX-RS annotations so that you can write HTTP clients easily (JAX-RS only defines server bindings) 
* Client "Browser" cache. Supports HTTP 1.1 caching semantics including cache revalidation 
* Server in-memory cache. Local response cache. Automatically handles ETag generation and cache revalidation 
* Rich set of providers for: XML, JSON, YAML, Fastinfoset, Multipart, XOP, Atom, etc. 
* JAXB marshalling into XML, JSON, Jackson, Fastinfoset, and Atom as well as wrappers for maps, arrays, lists, and sets of JAXB Objects. 
* GZIP content-encoding. Automatic GZIP compression/decompression suppport in client and server frameworks 
* Asynchronous HTTP (Comet) abstractions for JBoss Web, Tomcat 6, and Servlet 3.0 
* Asynchronous Job Service. 
* Rich interceptor model. 
* EJB, Seam, Guice, Spring, and Spring MVC integration 

Referenz: http://jboss.org/resteasy See Übersicht -> Eigenschaften.

+1

Nun, das ist nicht mehr wahr .. jetzt in ihrer Website können Sie es sehen -> Portable zu jedem App-Server/Tomcat, der auf JDK 6 oder höher läuft – Aitor

1

Die Gläser, die Sie von der Website erhalten werden mit Java 1.6 kompiliert (zumindest die Version 2.1.0.GA). Der Schlüsselwort hier ist "portabel", was ich interpretiere bedeutet, dass Sie das Projekt von Grund auf neu kompilieren müssen, um die Version 1.5 zu erhalten.

+0

Also meinst du ich muss alle entsprechenden Quelle bekommen Codes für Resteasy und dann neu kompilieren? Wenn ja, woher bekomme ich die Codes? – Anand