このコンテンツは選択した言語では利用できません。
Chapter 31. Embedded Container
RESTEasy JAX-RS comes with an embeddable server that can be run from your classpath. It packages the TJWS (Tiny Java Web Server) embeddable Servlet container with JAX-RS.
From the distribution, move the
JAR
s in resteasy-jaxrs.war/WEB-INF/lib
into your classpath. You must register your JAX-RS beans programmatically using the embedded server's Registry
. Here's an example:
The server can either host non-encrypted or SSL-based resources, but not both. See the Java Documentation for
TJWSEmbeddedJaxrsServer
and its superclass TJWSServletServer
for further information. The TJWS website is also very informative.
To use Spring, you will need the
SpringBeanProcessor
. Here is a pseudo-code example: