Echo Sample

This application presents Echo sample. The user sends a text message, server concatenates text " (from your server)" to the message and sends it back.

Contents

The application utilizes endpoint org.glassfish.tyrus.sample.echo.EchoEndpoint to receive messages, add the text and send it 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-echo