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>.

Icono que indica el tipo de tema Tema de tarea



Icono de indicación de fecha y hora Última actualización: Tuesday, 6 December 2016
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=twlp_ejb_in_ear
Nombre de archivo:twlp_ejb_in_ear.html