Simple Lifecycle Sample

This application presents the simple lifecycle of the endpoint. The user can connect to an endpoint, send a message and disconnect from the endpoint. For connect/onOpen and send/onMessage events the server sends a message confirming that the event occurred.

Contents

The application utilizes endpoint org.glassfish.tyrus.sample.simplelife.SimpleLifeBean to receive messages and reply back.

Running the Example

Run the example as follows: deploy:

$AS_MAIN/bin/asadmin start-domain
$AS_MAIN/bin/asadmin deploy --force ./target/*war

From a web browser, visit:

http://localhost:8080/sample-simplelife