Liberty Repository[8.5.5.6 or later]
This topic applies to WebSphere Application Server Liberty V8.5.5.9 and earlier. For the latest Liberty topics, see the WebSphere Application Server Liberty documentation.

Deploying EJB in an EAR file for JAX-RS 2.0

In Liberty, JAX-RS 2.0 supports EJB JAX-RS in EJB JAR file that must be included in an EAR file.

Procedure

  1. Deploy the new myearfile.ear file to Liberty.
  2. Use the following URL pattern to access the JAX-RS service::
    http://<host>:<port>/<context root>/<path of jaxrs resource>
    For example, you can access EJB JAX-RS in <myejbjaxrs.jar>:
    http://<host>:<port>/myejbjaxrs/<path of jaxrs resource>
    Note: If there are EJB JAX-WS classes in the same EJB-jar and the JAX-WS 2.2 feature is enabled, that means JAX-WS router module also exists, then the default context root should be the short file name of EJB jar+".jaxrs" like "myejbjaxrs.jaxrs" for <myejbjaxrs.jar>.

Icon that indicates the type of topic Task topic



Timestamp icon Last updated: Tuesday, 12 December 2017
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-libcore-mp&topic=twlp_ejb_in_ear
File name: twlp_ejb_in_ear.html