> Markdown version of [Configuring Push in Embedded Applications](https://vaadin.com/docs/v14/flow/integrations/embedding/tutorial-webcomponent-push). Section index: [llms.txt](https://vaadin.com/docs/v14/flow/llms.txt)

# 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](https://vaadin.com/docs/v14/flow/advanced/tutorial-push-configuration.md#push.configuration.annotation) in your `WebComponentExporter` class.

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

  ```java
  @Push
  public class PushComponentExporter
          extends WebComponentExporter<Div> {
  ```

- Declare Push on the servlet level, by defining them in the [servlet configuration](https://vaadin.com/docs/v14/flow/advanced/tutorial-push-configuration.md#push.configuration.servlet).

  > **Note:** The `@Push` annotation declaration has the same limitation as the [@Theme\` annotation](https://vaadin.com/docs/v14/flow/integrations/embedding/tutorial-webcomponent-theming.md): 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](https://vaadin.com/docs/v14/flow/advanced/tutorial-push-configuration.md) for more about configuring Push.

`9677C30D-F926-41DB-A8AE-FC2871D7E16B`
