此内容没有您所选择的语言版本。
15.16. EJB Integration
In order to integrate RESTEasy with EJB, you must first modify the published interfaces of your EJB. Currently, RESTEasy only has simple portable integration with EJBs, so you must also manually configure your RESTEasy war file.
To make an EJB function as a JAX-RS resource, you must annotate an SLSB's
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
@Remote
or @Local
interface with JAX-RS annotations:
Next, in RESTEasy's
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
web.xml
file, you must manually register the EJB with RESTEasy using the resteasy.jndi.resources <context-param>