JBoss.orgCommunity Documentation

Chapter 8. Configuration

8.1. Appserver Configuration
8.2. ErraiApp.properties
8.3. ErraiService.properties
8.3.1. errai.dispatcher.implementation
8.3.2. errai.async_thread_pool_size
8.3.3. errai.async.worker_timeout
8.3.4. errai.authentication_adapter
8.3.5. errai.require_authentication_for_all
8.3.6. errai.auto_discover_services
8.3.7. errai.auto_load_extensions
8.4. Dispatcher Implementations
8.4.1. SimpleDispatcher
8.4.2. AsyncDispatcher
8.5. Servlet Implementations
8.5.1. DefaultBlockingServlet
8.5.2. JBossCometServlet
8.5.3. JettyContinuationsServlet
8.5.4. StandardAsyncServlet

This section contains information on configuring Errai.

Depending on what application server you are deploying on, you must provide an appropriate servlet implementation if you wish to use true, asynchronous I/O. See Section 8.5, “Servlet Implementations” for information on the available servlet implementations.

Here's a sample web.xml file:

<web-app xmlns="http://java.sun.com/xml/ns/javaee"







The ErraiApp.properties acts as a marker file. When it is detected inside a JAR or at the top of any classpath, the subdirectories are scanned for deployable components. As such, all Errai application modules in a project should contain an ErraiApp.properties at the root of all classpaths that you wish to be scanned.

he ErraiService.properties file contains basic configuration for the bus itself.

Example Configuration:

Dispatchers encapsulate the strategy for taking messages that need to be delivered somewhere and seeing that they are delivered to where they need to go. There are two primary implementations that are provided with Errai, depending on your needs.

Errai has several different implementations for HTTP traffic to and from the bus. We provide a universally-compatible blocking implementation that provides fully synchronous communication to/from the server-side bus. Where this introduces scalability problems, we have implemented many webserver-specific implementations that take advantage of the various proprietary APIs to provide true asynchrony.

These included implementations are packaged at: org.jboss.errai.bus.server.servlet .