Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

The Aggregator servlet

Chuck Dumont edited this page Jun 24, 2015 · 5 revisions

The Aggregator is an implementation of the javax.servlets.HttpServlet interface, but it does not define a servlet. You define the servlet for your application, along with the server-side AMD configuration for your application. The servlet is defined in the OSGi bundle for your application using the org.eclipse.equinox.http.registry.servlets extension point, specifying com.ibm.jaggr.service.impl.AggregatorImpl as the implementing class, and specifying the server-side AMD config file using the config init-param as in the following example:

<extension point="org.eclipse.equinox.http.registry.servlets">
    <servlet alias="/aggr" class="com.ibm.jaggr.service.impl.AggregatorImpl">
        <init-param name="config" value="aggr-config.js"/>
    </servlet>
</extension>