SeamFramework.orgCommunity Documentation

Chapter 32. Seam REST Dependencies

32.1. Transitive Dependencies
32.2. Optional dependencies
32.2.1. Seam Catch
32.2.2. Seam Config
32.2.3. FreeMarker
32.2.4. Apache Velocity
32.2.5. RESTEasy

The Seam REST module depends on the transitive dependencies at runtime listed in table Table 32.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 28.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 28.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 30.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 30.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 31, 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.