Tobago Demo

Menu

Conversation

Warning: This example is turned off, because its not suppored in Quarkus!

This page show a simple example for the @ConversationScoped annotation. The Conversationscope is needed for situations when the controller must live longer than a single request, but don't need to live the whole session.

A @Inject Conversation conversation; must be injected. After that a conversation can be started with conversation.begin() and stopped with conversation.end().

Example

Counting up greater than '1' is only possible when a conversation is started.

stopped
0
© 2005-2023 Apache Software Foundation, Licensed under the Apache License, Version 2.0.