Docs

Documentation versions (currently viewingVaadin 25.1 (pre-release))

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’s been configured.

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