Migrating your JAX-RS application from one WebSphere Application Server release to another

You can run your Java API for RESTful Web Services (JAX-RS) web application on various releases of WebSphere® Application Server. To do so, you must include the appropriate libraries in your web application for the version of the product you want to deploy applications to.

About this task

This task provides instructions for migrating your JAX-RS application from one version of the product to another version.

Procedure

  1. Add the Java archive (JAR) files to the library class path for the application. Review the following table to determine which JAR files are required when migrating to a specific version of the product:
    Library Name 6.1 7.0 Community Edition 8.0
    ibm-wink-jaxrs Yes Yes Yes No
    jsr311-api Yes Yes Yes No
    commons-lang Yes Yes No No
    commons-codec Yes Yes No No
    slf4j-jdk14 Yes Yes No No
    slf4j-api Yes Yes No No
    ibm-jaxb Yes No No No
    Avoid trouble Avoid trouble: The ibm-jaxb JAR file is only required if you are running on a product installation that does not have Java Architecture for XML Binding (JAXB). The WebSphere Application Server V6.1 Feature Pack for Web Services adds JAXB to the base runtime environment. In this case, it is unnecessary to add the ibm-jaxb JAR file to your application.gotcha
  2. If you want to use the Apache HTTP client, you must add the httpcore, httpclient, jcl-over-slf4j, and commons-codec JAR files to the library class path for the application.

Results

You have migrated your JAX-RS application from one WebSphere Application Server version to another.




In this information ...


IBM Redbooks, demos, education, and more

(Index)

Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

Task topic Task topic    

Terms and conditions for information centers | Feedback

Last updatedLast updated: Sep 6, 2012 5:50:55 AM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=v610webmob&product=was-nd-mp&topic=twbs_jaxrs_web20_migration
File name: twbs_jaxrs_web20_migration.html