Configuring Push in Embedded Applications
You can configure and enable Push in your embedded applications.
You can configure Push in two ways:
-
Use the
@Pushannotation in yourWebComponentExporterclass.Example: Using the
@Pushannotation in thePushComponentExporterclass.Source code
Java
@Push public class PushComponentExporter extends WebComponentExporter<Div> { -
Declare Push on the servlet level, by defining them in the servlet configuration.
NoteThe @Pushannotation declaration has the same limitation as the @Theme` annotation: it’s only possible to configure Push for one exporter. Declaring different@Pushannotations for different exporter classes results in an exception during start-up.
See Server Push Configuration for more about configuring Push.
B5999F49-7C2F-4A50-8964-AADC0A8CD2E6