Skip to content

The Aggregator servlet

chuckdumont edited this page Oct 18, 2012 · 3 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 servlet 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>
Clone this wiki locally