Configuring Push in Embedded Applications
You can configure and enable Push in your embedded applications.
There are two ways to configure Push:
-
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 is only possible to configure Push for one exporter. Declaring different@Pushannotations for different exporter classes will result in an exception during startup.
See Server Push Configuration for more about configuring Push.
9677C30D-F926-41DB-A8AE-FC2871D7E16B