Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

Latest commit

 

History

History
33 lines (23 loc) · 1.11 KB

tutorial-webcomponent-push.asciidoc

File metadata and controls

33 lines (23 loc) · 1.11 KB
title order layout
Configuring Push in Embedded Applications
4
page

Configuring Push in Embedded Applications

You can configure and enable Push in your embedded applications.

There are two ways to configure Push:

  • Use the @Push annotation in your WebComponentExporter class.

    Example: Using the @Push annotation in the PushComponentExporter class.

    @Push
    public class PushComponentExporter
            extends WebComponentExporter<Div> {
  • Declare Push on the servlet level, by defining them in the servlet configuration.

    Note
    The @Push annotation declaration has the same limitation as the @Theme` annotation: it is only possible to configure Push for one exporter. Declaring different @Push annotations for different exporter classes will result in an exception during startup.

See Server Push Configuration for more about configuring Push.