SeamFramework.orgCommunity Documentation

Chapter 37. Seam REST Dependencies

37.1. Transitive Dependencies
37.2. Optional dependencies
37.2.1. Seam Catch
37.2.2. Seam Config
37.2.3. FreeMarker
37.2.4. Apache Velocity
37.2.5. RESTEasy

The Seam REST module depends on the transitive dependencies at runtime listed in table Table 37.1, “Transitive dependencies” .


Seam Catch can be used for handling Java exceptions. For more information on using Seam Catch with Seam REST, refer to Section 33.1, “Seam Catch Integration”


<dependency>
    <groupId>org.jboss.seam.catch</groupId>
    <artifactId>seam-catch-api</artifactId>
    <version>${seam.catch.version}</version>
</dependency>
<dependency>
    <groupId>org.jboss.seam.catch</groupId>
    <artifactId>seam-catch-impl</artifactId>
    <version>${seam.catch.version}</version>
</dependency>

Seam Config can be used to configure Seam REST using XML. For more information on using Seam Config with Seam REST, refer to Section 33.2.2, “XML configuration”


<dependency>
    <groupId>org.jboss.seam.config</groupId>
    <artifactId>seam-config-xml</artifactId>
    <version>${seam.config.version}</version>
</dependency>

FreeMarker can be used for rendering HTTP responses. For more information on using FreeMarker with Seam REST, refer to Section 35.2.1, “FreeMarker”


<dependency>
    <groupId>org.freemarker</groupId>
    <artifactId>freemarker</artifactId>
    <version>${freemarker.version}</version>
</dependency>

Apache Velocity can be used for rendering HTTP responses. For more information on using Velocity with Seam REST, refer to Section 35.2.2, “Apache Velocity”


<dependency>
    <groupId>org.apache.velocity</groupId>
    <artifactId>velocity</artifactId>
    <version>${velocity.version}</version>
</dependency>
<dependency>
    <groupId>org.apache.velocity</groupId>
    <artifactId>velocity-tools</artifactId>
    <version>${velocity.tools.version}</version>
</dependency>

RESTEasy Client Framework can be used for building clients of RESTful web services. For more information on using RESTEasy Client Framework, refer to Chapter 36, RESTEasy Client Framework Integration


<dependency>
    <groupId>org.jboss.resteasy</groupId>
    <artifactId>resteasy-jaxrs</artifactId>
    <version>${resteasy.version}</version>
</dependency>

Note

Note that RESTEasy is provided on JBoss Application Server 6 and thus you do not need to bundle it with the web application.