Skip to content

Configuring Layr on JEE environment

Miere Teixeira edited this page Jul 2, 2013 · 4 revisions

To run Layr on any Servlet Container, just include the following layr-servlet on your maven project (pom.xml):

<dependency>
    <groupId>org.layr</groupId>
    <artifactId>layr-servlet</artifactId>
    <version>3.0</version>
</dependency>

To allow EJB Services support on your project, include also layr-ejb-support on your maven project:

<dependency>
    <groupId>org.layr</groupId>
    <artifactId>layr-ejb-support</artifactId>
    <version>3.0</version>
</dependency>

Then, include the following snippet on your Web Descriptor (web.xml) file:

<filter-mapping>
    <filter-name>layr.servlet.Application</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>

Easy like that!

Tested containers

  • JBoss AS 6
  • JBoss AS 7
  • Apache Tomcat 7
  • Jetty Embedded Container 8
  • Jetty Embedded Container 9
  • Jetty Standalone Container 9