Docs

Documentation versions (currently viewingVaadin 24)

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

See the Other Applications in the production configuration documentation for details on how to configure Collaboration Kit.

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