Documentation

Documentation versions (currently viewingVaadin 23)

You are viewing documentation for Vaadin 23. View latest documentation

Obtaining a Collaboration Kit Instance in a Servlet

When a VaadinService instance isn’t available, it’s impossible to get a CollaborationEngine instance with the getInstance() method. In a servlet, you can get the instance with the getAttribute() method, as long as it has been configured. See the Other Applications in production configuration documentation for details on how to configure Collaboration Kit.

Source code
MyServlet.java

In the following example, a message posted through a form is added to a topic as a system message:

Source code
MyServlet.java

5E7060D6-DF74-4209-9DD4-663C7BC21A10